Esempio n. 1
0
 public Job(Listen360Client.Model.Xml.Job xml) : this()
 {
     CommencedAt    = xml.CommencedAt.Value;
     CompletedAt    = xml.CompletedAt.Value;
     CreatedAt      = xml.CreatedAt.Value;
     Currency       = xml.Currency.Value;
     CustomerId     = xml.CustomerId.Value;
     Id             = xml.Id.Value;
     OrganizationId = xml.OrganizationId.Value;
     Reference      = xml.Reference.Value;
     Status         = xml.Status.Value;
     UpdatedAt      = xml.UpdatedAt.Value;
     Value          = xml.Value.Value;
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 1, Label = xml.CustomChoice1Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 2, Label = xml.CustomChoice2Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 3, Label = xml.CustomChoice3Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 4, Label = xml.CustomChoice4Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 5, Label = xml.CustomChoice5Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 6, Label = xml.CustomChoice6Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 7, Label = xml.CustomChoice7Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 8, Label = xml.CustomChoice8Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 9, Label = xml.CustomChoice9Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 10, Label = xml.CustomChoice10Label.Value
     });
     Performers.AddRange(xml.Performers.Performers.Select(p => new Performer(p)));
 }
Esempio n. 2
0
 public Customer(Listen360Client.Model.Xml.Customer xml) : this()
 {
     CompanyName       = xml.CompanyName.Value;
     CreatedAt         = xml.CreatedAt.Value;
     FirstName         = xml.FirstName.Value;
     FullName          = xml.FullName.Value;
     Id                = xml.Id.Value;
     LastName          = xml.LastName.Value;
     LastSurveyBounced = xml.LastSurveyBounced.Value;
     MobilePhoneNumber = xml.MobilePhoneNumber.Value;
     Name              = xml.Name.Value;
     OrganizationId    = xml.OrganizationId.Value;
     PermitsContact    = xml.PermitsContact.Value;
     Reference         = xml.Reference.Value;
     Status            = xml.Status.Value;
     Title             = xml.Title.Value;
     UpdatedAt         = xml.UpdatedAt.Value;
     Workcity          = xml.Workcity.Value;
     WorkCountry       = xml.WorkCountry.Value;
     WorkEmail         = xml.WorkEmail.Value;
     WorkPhoneNumber   = xml.WorkPhoneNumber.Value;
     WorkpostalCode    = xml.WorkpostalCode.Value;
     WorkRegion        = xml.WorkRegion.Value;
     WorkStreet        = xml.WorkStreet.Value;
     NetPromoterLabel  = xml.NetPromoterLabel.Value;
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 1, Label = xml.CustomChoice1Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 2, Label = xml.CustomChoice2Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 3, Label = xml.CustomChoice3Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 4, Label = xml.CustomChoice4Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 5, Label = xml.CustomChoice5Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 6, Label = xml.CustomChoice6Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 7, Label = xml.CustomChoice7Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 8, Label = xml.CustomChoice8Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 9, Label = xml.CustomChoice9Label.Value
     });
     CustomChoiceLabels.Add(new ChoiceLabel()
     {
         Ordinal = 10, Label = xml.CustomChoice10Label.Value
     });
 }