Beispiel #1
0
        public string GetPostString(UserProfileClient upc)
        {
            string      partitionkey = AddresseeClient.GetPartitionKeyForEmail(Email);
            UserProfile profile      = upc.GetByPartitionAndRowKey(partitionkey, Email);

            if (profile != null)
            {
                Phone    = profile.Phone;
                Address1 = profile.Address1;
                City     = profile.City;
                State    = profile.State;
            }

            return("campaign_id=" + CampaignId +
                   "&id=1727" +
                   "&ip=" + IP +
                   "&client=" + ClientId +
                   "&salutation=" + Salutation +
                   "&gender=" + Gender +
                   "&firstname=" + FirstName.Trim() +
                   "&lastname=" + LastName.Trim() +
                   "&email=" + Email +
                   "&zip=" + Zip +
                   "&phone=" + Phone +
                   "&address1=" + Address1 +
                   "&city=" + City +
                   "&state=" + State +
                   "&education_level=" + EducationLevel +
                   "&educationlevel=" + EducationLevel +
                   "&edu_intent=" + EduIntent +
                   "&gradyear=" + GradYear +
                   "&dobyear=" + DobYear +
                   "&dobmonth=" + DobMonth +
                   "&dobday=" + DobDay);
        }
 public Addressee(string email)
 {
     PartitionKey        = AddresseeClient.GetPartitionKeyForEmail(email);
     RowKey              = email;
     Timestamp           = EasternTimeConverter.Convert(DateTime.UtcNow);
     Unsubscribed        = false;
     UnsubscribedUTCDate = DateTime.MaxValue;
 }
Beispiel #3
0
 public UserProfile(string email)
 {
     PartitionKey     = AddresseeClient.GetPartitionKeyForEmail(email);
     RegistrationDate = EasternTimeConverter.Convert(DateTime.UtcNow).ToString("yyyyMMdd");
     RowKey           = email;
 }