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!"); } }
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!"); } }