SIPSorcery.Entities.CustomerAccount.CreateCustomerAccount C# (CSharp) Method

CreateCustomerAccount() public static method

Create a new CustomerAccount object.
public static CreateCustomerAccount ( global id, global owner, global accountCode, global credit, global inserted, global accountName, global ratePlan ) : CustomerAccount
id global Initial value of the ID property.
owner global Initial value of the Owner property.
accountCode global Initial value of the AccountCode property.
credit global Initial value of the Credit property.
inserted global Initial value of the Inserted property.
accountName global Initial value of the AccountName property.
ratePlan global Initial value of the RatePlan property.
return CustomerAccount
        public static CustomerAccount CreateCustomerAccount(global::System.String id, global::System.String owner, global::System.String accountCode, global::System.Decimal credit, global::System.String inserted, global::System.String accountName, global::System.Int32 ratePlan)
        {
            CustomerAccount customerAccount = new CustomerAccount();
            customerAccount.ID = id;
            customerAccount.Owner = owner;
            customerAccount.AccountCode = accountCode;
            customerAccount.Credit = credit;
            customerAccount.Inserted = inserted;
            customerAccount.AccountName = accountName;
            customerAccount.RatePlan = ratePlan;
            return customerAccount;
        }