Пример #1
0
        /// <summary>
        /// Gets the users referrals by event type and count.
        /// </summary>
        /// <returns>
        /// The result of the operation.
        /// </returns>
        private ResultCode GetUsersReferrals()
        {
            GetUsersReferralsResponse response = (GetUsersReferralsResponse)Context[Key.Response];

            Context.Log.Verbose("Retrieving user's referrals by event type and count.");
            response.ReferralCodeReports = ReferralOperations.RetrieveReferralCounts();
            Context.Log.Verbose("User's referral events and counts retrieved.");

            return(ResultCode.Success);
        }