示例#1
0
        internal static void RemoveLineupFromAccount(string lineup)
        {
            LineupSubscriptionChangeReponse response = JSONClient.GetJSONResponse <LineupSubscriptionChangeReponse>(
                UrlBuilder.BuildWithAPIPrefix("/lineups/" + lineup), null, SDTokenManager.token_manager.token, "DELETE");

            if (!response.Succeeded())
            {
                throw new Exception("Failed to remove lineup from account!");
            }
        }
示例#2
0
        public static void AddLineupToAccount(string lineup)
        {
            LineupSubscriptionChangeReponse response = JSONClient.GetJSONResponse <LineupSubscriptionChangeReponse>(
                UrlBuilder.BuildWithAPIPrefix("/lineups/" + lineup), null, SDTokenManager.token_manager.token, "PUT");

            if (!response.Succeeded())
            {
                throw new Exception("Failed to add lineup to account!");
            }
        }