コード例 #1
0
 public static AnalyticsResult SetUserGender(Gender gender)
 {
     return(Analytics.SendUserInfoEvent(new Analytics.UserInfo
     {
         sex = ((gender == Gender.Male) ? "M" : ((gender == Gender.Female) ? "F" : "U"))
     }));
 }
コード例 #2
0
 public static AnalyticsResult SetUserBirthYear(int birthYear)
 {
     return(Analytics.SendUserInfoEvent(new Analytics.UserInfoBirthYear
     {
         birth_year = birthYear
     }));
 }
コード例 #3
0
        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
            }));
        }