This commit is contained in:
@@ -752,25 +752,11 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
var rMainObject = await util.PostAsync("user", d.ToString());
|
var rContact = await util.PostAsync("user", d.ToString());
|
||||||
long RavenContactId = util.IdFromResponse(rMainObject);
|
long RavenContactId = util.IdFromResponse(rContact);
|
||||||
|
|
||||||
|
|
||||||
//USER OPTIONS
|
//USER OPTIONS
|
||||||
/*
|
|
||||||
[Required]
|
|
||||||
public long TranslationId { get; set; }
|
|
||||||
|
|
||||||
//-------------
|
|
||||||
//[EmailAddress]
|
|
||||||
public string EmailAddress { get; set; }
|
|
||||||
// [Phone]
|
|
||||||
public string Phone1 { get; set; }
|
|
||||||
//[Phone]
|
|
||||||
public string Phone2 { get; set; }
|
|
||||||
//in v7 this was pager address so not attributing it with Phone as not sure what would be in that field
|
|
||||||
public string Phone3 { get; set; }
|
|
||||||
*/
|
|
||||||
var rOptions = await util.GetAsync("user-option/" + RavenContactId.ToString());
|
var rOptions = await util.GetAsync("user-option/" + RavenContactId.ToString());
|
||||||
d = rOptions.ObjectResponse["data"];
|
d = rOptions.ObjectResponse["data"];
|
||||||
d.phone1 = c.Phone1;
|
d.phone1 = c.Phone1;
|
||||||
@@ -780,10 +766,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.emailAddress = c.Email;
|
d.emailAddress = c.Email;
|
||||||
|
|
||||||
|
|
||||||
if (LocaleMap.ContainsKey(c.DefaultLanguage))
|
// d.translationId = 1;
|
||||||
d.translationId = LocaleMap[c.DefaultLanguage];
|
|
||||||
else
|
|
||||||
d.translationId = 1;
|
|
||||||
|
|
||||||
await util.PutAsync("user-option/" + RavenContactId.ToString(), d.ToString());
|
await util.PutAsync("user-option/" + RavenContactId.ToString(), d.ToString());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user