示例#1
0
        public static NativeProfileScope ToLLProfileScope(XFLLProfileScope source)
        {
            if (source == XFLLProfileScope.Organization)
            {
                return(NativeProfileScope.Organization);
            }

            return(NativeProfileScope.Application);
        }
示例#2
0
        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));
                }
            }
        }
示例#5
0
 public void DeleteProfileAttribute(string attribute, XFLLProfileScope scope)
 {
     Localytics.DeleteProfileAttribute(attribute, ToLLProfileScope(scope));
 }
示例#6
0
 public void DecrementProfileAttribute(int value, string attribute, XFLLProfileScope scope)
 {
     Localytics.DecrementProfileAttribute(value, attribute, ToLLProfileScope(scope));
 }
示例#7
0
 public void RemoveProfileAttributesFromSet(object[] values, string attribute, XFLLProfileScope scope)
 {
     Localytics.RemoveProfileAttributesFromSet(ToNSObjects(values), attribute, ToLLProfileScope(scope));
 }
示例#8
0
 public void AddProfileAttributesToSet(object[] values, string attribute, XFLLProfileScope scope)
 {
     Localytics.AddProfileAttributesToSet(ToNSObjects(values), attribute, ToLLProfileScope(scope));
 }
示例#9
0
 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));
 }