Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="User" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="FirstName">FirstName.</param>
 /// <param name="LastName">LastName.</param>
 /// <param name="Address">Address.</param>
 /// <param name="City">City.</param>
 /// <param name="State">State.</param>
 /// <param name="Zip">Zip.</param>
 /// <param name="Country">Country.</param>
 /// <param name="Thumbnail">Thumbnail.</param>
 /// <param name="Created">Created.</param>
 /// <param name="WorkerCompensation">WorkerCompensation.</param>
 /// <param name="TimeZone">TimeZone.</param>
 /// <param name="Request">Request.</param>
 /// <param name="Route">Route.</param>
 /// <param name="Website">Website.</param>
 /// <param name="Coords">Coords.</param>
 /// <param name="Protec">Protec.</param>
 /// <param name="Marketplace">Marketplace.</param>
 /// <param name="Routable">Routable.</param>
 /// <param name="Assigned">Assigned.</param>
 /// <param name="Unassignable">Unassignable.</param>
 /// <param name="WorkOrder">WorkOrder.</param>
 /// <param name="PreviousRequest">PreviousRequest.</param>
 /// <param name="PreviousAssignment">PreviousAssignment.</param>
 /// <param name="BackgroundChecks">BackgroundChecks.</param>
 /// <param name="DrugTests">DrugTests.</param>
 /// <param name="UpcomingSchedule">UpcomingSchedule.</param>
 /// <param name="WorkedWith">WorkedWith.</param>
 /// <param name="Jobs">Jobs.</param>
 /// <param name="Managed">Managed.</param>
 /// <param name="Rating">Rating.</param>
 /// <param name="Company">Company.</param>
 /// <param name="_Client">_Client.</param>
 /// <param name="Role">Role.</param>
 /// <param name="LastActive">LastActive.</param>
 /// <param name="Email">Email.</param>
 /// <param name="Phone">Phone.</param>
 /// <param name="PreferredGroups">PreferredGroups.</param>
 /// <param name="About">About.</param>
 /// <param name="Tagline">Tagline.</param>
 /// <param name="Block">Block.</param>
 /// <param name="TypesOfWork">TypesOfWork.</param>
 /// <param name="Experience">Experience.</param>
 /// <param name="Certifications">Certifications.</param>
 /// <param name="Notes">Notes.</param>
 /// <param name="Licenses">Licenses.</param>
 /// <param name="CorrelationId">CorrelationId.</param>
 /// <param name="Education">Education.</param>
 public User(int?Id = default(int?), string FirstName = default(string), string LastName = default(string), string Address = default(string), string City = default(string), string State = default(string), string Zip = default(string), string Country = default(string), string Thumbnail = default(string), DateTime?Created = default(DateTime?), bool?WorkerCompensation = default(bool?), TimeZone TimeZone = default(TimeZone), Request Request = default(Request), Route Route = default(Route), string Website = default(string), Coords Coords = default(Coords), bool?Protec = default(bool?), bool?Marketplace = default(bool?), bool?Routable = default(bool?), bool?Assigned = default(bool?), bool?Unassignable = default(bool?), WorkOrder WorkOrder = default(WorkOrder), UserPreviousRequest PreviousRequest = default(UserPreviousRequest), UserPreviousAssignment PreviousAssignment = default(UserPreviousAssignment), List <BackgroundCheck> BackgroundChecks = default(List <BackgroundCheck>), List <DrugTest> DrugTests = default(List <DrugTest>), List <UserUpcomingSchedule> UpcomingSchedule = default(List <UserUpcomingSchedule>), bool?WorkedWith = default(bool?), UserJobs Jobs = default(UserJobs), bool?Managed = default(bool?), UserRating Rating = default(UserRating), UserCompany Company = default(UserCompany), Company _Client = default(Company), string Role = default(string), DateTime?LastActive = default(DateTime?), string Email = default(string), string Phone = default(string), UserPreferredGroups PreferredGroups = default(UserPreferredGroups), string About = default(string), string Tagline = default(string), Block Block = default(Block), TypesOfWork TypesOfWork = default(TypesOfWork), Experiences Experience = default(Experiences), Certifications Certifications = default(Certifications), UserNotes Notes = default(UserNotes), Licenses Licenses = default(Licenses), string CorrelationId = default(string), Educations Education = default(Educations))
 {
     this.Id                 = Id;
     this.FirstName          = FirstName;
     this.LastName           = LastName;
     this.Address            = Address;
     this.City               = City;
     this.State              = State;
     this.Zip                = Zip;
     this.Country            = Country;
     this.Thumbnail          = Thumbnail;
     this.Created            = Created;
     this.WorkerCompensation = WorkerCompensation;
     this.TimeZone           = TimeZone;
     this.Request            = Request;
     this.Route              = Route;
     this.Website            = Website;
     this.Coords             = Coords;
     this.Protec             = Protec;
     this.Marketplace        = Marketplace;
     this.Routable           = Routable;
     this.Assigned           = Assigned;
     this.Unassignable       = Unassignable;
     this.WorkOrder          = WorkOrder;
     this.PreviousRequest    = PreviousRequest;
     this.PreviousAssignment = PreviousAssignment;
     this.BackgroundChecks   = BackgroundChecks;
     this.DrugTests          = DrugTests;
     this.UpcomingSchedule   = UpcomingSchedule;
     this.WorkedWith         = WorkedWith;
     this.Jobs               = Jobs;
     this.Managed            = Managed;
     this.Rating             = Rating;
     this.Company            = Company;
     this._Client            = _Client;
     this.Role               = Role;
     this.LastActive         = LastActive;
     this.Email              = Email;
     this.Phone              = Phone;
     this.PreferredGroups    = PreferredGroups;
     this.About              = About;
     this.Tagline            = Tagline;
     this.Block              = Block;
     this.TypesOfWork        = TypesOfWork;
     this.Experience         = Experience;
     this.Certifications     = Certifications;
     this.Notes              = Notes;
     this.Licenses           = Licenses;
     this.CorrelationId      = CorrelationId;
     this.Education          = Education;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Request" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Counter">Counter.</param>
 /// <param name="CounterNotes">CounterNotes.</param>
 /// <param name="Active">Active.</param>
 /// <param name="Created">Created.</param>
 /// <param name="Expires">Expires.</param>
 /// <param name="Expired">Expired.</param>
 /// <param name="Schedule">Schedule.</param>
 /// <param name="Eta">Eta.</param>
 /// <param name="HourEstimate">HourEstimate.</param>
 /// <param name="Notes">Notes.</param>
 /// <param name="User">User.</param>
 /// <param name="WorkOrder">WorkOrder.</param>
 /// <param name="Pay">Pay.</param>
 /// <param name="Expenses">Expenses.</param>
 /// <param name="Actions">Actions.</param>
 public Request(int?Id = default(int?), bool?Counter = default(bool?), string CounterNotes = default(string), bool?Active = default(bool?), DateTime?Created = default(DateTime?), DateTime?Expires = default(DateTime?), bool?Expired = default(bool?), Schedule Schedule = default(Schedule), ETA Eta = default(ETA), decimal?HourEstimate = default(decimal?), string Notes = default(string), User User = default(User), WorkOrder WorkOrder = default(WorkOrder), Pay Pay = default(Pay), List <Expense> Expenses = default(List <Expense>), List <ActionsEnum> Actions = default(List <ActionsEnum>))
 {
     this.Id           = Id;
     this.Counter      = Counter;
     this.CounterNotes = CounterNotes;
     this.Active       = Active;
     this.Created      = Created;
     this.Expires      = Expires;
     this.Expired      = Expired;
     this.Schedule     = Schedule;
     this.Eta          = Eta;
     this.HourEstimate = HourEstimate;
     this.Notes        = Notes;
     this.User         = User;
     this.WorkOrder    = WorkOrder;
     this.Pay          = Pay;
     this.Expenses     = Expenses;
     this.Actions      = Actions;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FundTransaction" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Type">Type (required).</param>
 /// <param name="Amount">Amount (required).</param>
 /// <param name="Description">Description.</param>
 /// <param name="Status">Status.</param>
 /// <param name="StatusReason">StatusReason.</param>
 /// <param name="Note">Note.</param>
 /// <param name="CreditCardId">CreditCardId.</param>
 /// <param name="ExternalId">ExternalId.</param>
 /// <param name="Created">Created.</param>
 /// <param name="Updated">Updated.</param>
 /// <param name="WorkOrder">WorkOrder.</param>
 /// <param name="CreditCard">CreditCard.</param>
 /// <param name="Bank">Bank.</param>
 /// <param name="BillingAddress">BillingAddress.</param>
 public FundTransaction(int?Id = default(int?), TypeEnum?Type = default(TypeEnum?), decimal?Amount = default(decimal?), string Description = default(string), StatusEnum?Status = default(StatusEnum?), string StatusReason = default(string), string Note = default(string), string CreditCardId = default(string), string ExternalId = default(string), DateTime?Created = default(DateTime?), DateTime?Updated = default(DateTime?), WorkOrder WorkOrder = default(WorkOrder), CreditCard CreditCard = default(CreditCard), Bank Bank = default(Bank), BillingAddress BillingAddress = default(BillingAddress))
 {
     // to ensure "Type" is required (not null)
     if (Type == null)
     {
         throw new InvalidDataException("Type is a required property for FundTransaction and cannot be null");
     }
     else
     {
         this.Type = Type;
     }
     // to ensure "Amount" is required (not null)
     if (Amount == null)
     {
         throw new InvalidDataException("Amount is a required property for FundTransaction and cannot be null");
     }
     else
     {
         this.Amount = Amount;
     }
     this.Id             = Id;
     this.Description    = Description;
     this.Status         = Status;
     this.StatusReason   = StatusReason;
     this.Note           = Note;
     this.CreditCardId   = CreditCardId;
     this.ExternalId     = ExternalId;
     this.Created        = Created;
     this.Updated        = Updated;
     this.WorkOrder      = WorkOrder;
     this.CreditCard     = CreditCard;
     this.Bank           = Bank;
     this.BillingAddress = BillingAddress;
 }