add contact
This commit is contained in:
@@ -14,6 +14,15 @@ List<Day> dayLists = [
|
||||
|
||||
class Setting {
|
||||
final int supportBuildNum;
|
||||
|
||||
// contact page
|
||||
String usaAddress;
|
||||
String mmAddress;
|
||||
String usaContactNumber;
|
||||
String mmContactNumber;
|
||||
String emailAddress;
|
||||
String facebookLink;
|
||||
|
||||
final String okEnergyId;
|
||||
final String about;
|
||||
final String terms;
|
||||
@@ -35,9 +44,7 @@ class Setting {
|
||||
List<String> phones;
|
||||
String deliveryPhone;
|
||||
String address;
|
||||
String email;
|
||||
String website;
|
||||
String facebook;
|
||||
DateTime priceLastUpdate;
|
||||
String bankAccountInfo;
|
||||
List<BankAccount> bankAccounts;
|
||||
@@ -71,6 +78,12 @@ class Setting {
|
||||
|
||||
Setting(
|
||||
{this.supportBuildNum,
|
||||
this.usaAddress,
|
||||
this.mmAddress,
|
||||
this.usaContactNumber,
|
||||
this.mmContactNumber,
|
||||
this.emailAddress,
|
||||
this.facebookLink,
|
||||
this.about,
|
||||
this.okEnergyId,
|
||||
this.terms,
|
||||
@@ -89,9 +102,7 @@ class Setting {
|
||||
this.helpVersion,
|
||||
this.helpURL,
|
||||
this.phones,
|
||||
this.email,
|
||||
this.website,
|
||||
this.facebook,
|
||||
this.priceLastUpdate,
|
||||
this.bankAccountInfo,
|
||||
this.bankAccounts,
|
||||
@@ -110,10 +121,16 @@ class Setting {
|
||||
}
|
||||
|
||||
return Setting(
|
||||
priceLastUpdate: ts?.toDate(),
|
||||
supportBuildNum: map['support_build_number'],
|
||||
usaAddress: map['usa_address'],
|
||||
mmAddress: map['mm_address'],
|
||||
usaContactNumber: map['usa_contact_number'],
|
||||
mmContactNumber: map['mm_contact_number'],
|
||||
emailAddress: map['email_address'],
|
||||
facebookLink: map['facebook_link'],
|
||||
about: map['about'],
|
||||
terms: map['terms'],
|
||||
priceLastUpdate: ts?.toDate(),
|
||||
okEnergyId: map['ok_energy_id'],
|
||||
poExpireInHours: map['po_expire_hours'],
|
||||
doExpireInHours: map['do_expire_hours'],
|
||||
@@ -128,11 +145,9 @@ class Setting {
|
||||
reportURL: map['report_url'],
|
||||
helpVersion: map['help_version'],
|
||||
helpURL: map['help_url'],
|
||||
email: map['email'],
|
||||
deliveryPhone: map['delivery_phone'],
|
||||
address: map['address'],
|
||||
website: map['website'],
|
||||
facebook: map['facebook'],
|
||||
bankAccountInfo: map['bank_account_info'],
|
||||
bankAccounts: bankAccounts);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user