public SfWallet(Wallet wallet, int id) : base(id) { Name = wallet.Name; Balance__c = wallet.Balance; CurrencyName__c = wallet.Currency.Abbreviation; IsDefault__c = wallet.IsDefault; User__r = new SfContact(wallet.User.Id); }
public SfTransaction(Transaction transaction, int id) : base(id) { Title__c = transaction.Title; Amount__c = transaction.Amount; Date__c = transaction.Date; User__r = new SfContact(transaction.User.Id); Wallet__r = new SfWallet(transaction.Wallet.Id); Category__r = new SfCategory(transaction.Category.Id); }
public SfCategory(Category category, int id) : base(id) { Name = category.Name; IconUrl__c = category.IconUrl; TypeName__c = category.Type.Name; IsCustom__c = category.IsCustom; if (category.User != null) { User__r = new SfContact(category.User.Id); } }
public SfRecurringTransaction(RegularTransaction transaction, int id) : base(id) { Title__c = transaction.Title; Amount__c = transaction.Amount; Date__c = transaction.Date; Interval__c = transaction.Interval; NextTransactionDate__c = transaction.NextTransactionDate; User__r = new SfContact(transaction.User.Id); Wallet__r = new SfWallet(transaction.Wallet.Id); Category__r = new SfCategory(transaction.Category.Id); }