public static NativeProfileScope ToLLProfileScope(XFLLProfileScope source) { if (source == XFLLProfileScope.Organization) { return(NativeProfileScope.Organization); } return(NativeProfileScope.Application); }
private LLProfileScope ToLLProfileScope(XFLLProfileScope source) { if (source == XFLLProfileScope.Organization) { return(LLProfileScope.Organization); } return(LLProfileScope.Application); }
public void SetProfileAttribute(object value, string attribute, XFLLProfileScope scope) { if (value is long || value is int) { Localytics.SetProfileAttribute(attribute, Convert.ToInt64(value), ToProfileScope(scope)); } else if (value is DateTime) { Localytics.SetProfileAttribute(attribute, ToJavaDate(value), ToProfileScope(scope)); } else { Localytics.SetProfileAttribute(attribute, value.ToString(), ToProfileScope(scope)); } }
public void AddProfileAttributesToSet(object[] values, string attribute, XFLLProfileScope scope) { if (values.Length > 0) { object firstValue = values [0]; if (firstValue is long || firstValue is int) { Localytics.AddProfileAttributesToSet(attribute, ToLongArray(values), ToProfileScope(scope)); } else if (firstValue is DateTime) { Localytics.AddProfileAttributesToSet(attribute, ToJavaDateArray(values), ToProfileScope(scope)); } else { Localytics.AddProfileAttributesToSet(attribute, ToStringArray(values), ToProfileScope(scope)); } } }
public void DeleteProfileAttribute(string attribute, XFLLProfileScope scope) { Localytics.DeleteProfileAttribute(attribute, ToLLProfileScope(scope)); }
public void DecrementProfileAttribute(int value, string attribute, XFLLProfileScope scope) { Localytics.DecrementProfileAttribute(value, attribute, ToLLProfileScope(scope)); }
public void RemoveProfileAttributesFromSet(object[] values, string attribute, XFLLProfileScope scope) { Localytics.RemoveProfileAttributesFromSet(ToNSObjects(values), attribute, ToLLProfileScope(scope)); }
public void AddProfileAttributesToSet(object[] values, string attribute, XFLLProfileScope scope) { Localytics.AddProfileAttributesToSet(ToNSObjects(values), attribute, ToLLProfileScope(scope)); }
public void SetProfileAttribute(object value, string attribute, XFLLProfileScope scope) { Localytics.SetProfileAttribute(NSObject.FromObject(value), attribute, ToLLProfileScope(scope)); }
public void IncrementProfileAttribute(int value, string attribute, XFLLProfileScope scope) { Localytics.IncrementProfileAttribute(attribute, (long)(value), ToProfileScope(scope)); }