public static AnalyticsResult SetUserGender(Gender gender) { return(Analytics.SendUserInfoEvent(new Analytics.UserInfo { sex = ((gender == Gender.Male) ? "M" : ((gender == Gender.Female) ? "F" : "U")) })); }
public static AnalyticsResult SetUserBirthYear(int birthYear) { return(Analytics.SendUserInfoEvent(new Analytics.UserInfoBirthYear { birth_year = birthYear })); }
public static AnalyticsResult SetUserId(string userId) { bool flag = string.IsNullOrEmpty(userId); if (flag) { throw new ArgumentException("Cannot set userId to an empty or null string"); } return(Analytics.SendUserInfoEvent(new Analytics.UserInfo { custom_userid = userId })); }