private static IDictionary <string, string> ConvertUnsubscribe(UnsubscribeRequest request) { IDictionary <string, string> dictionary = new Dictionary <string, string>(); dictionary["Action"] = "Unsubscribe"; if (request.IsSetSubscriptionArn()) { dictionary["SubscriptionArn"] = request.SubscriptionArn; } return(dictionary); }
/** * Convert UnsubscribeRequest to name value pairs */ private static IDictionary<string, string> ConvertUnsubscribe(UnsubscribeRequest request) { IDictionary<string, string> parameters = new Dictionary<string, string>(); parameters["Action"] = "Unsubscribe"; if (request.IsSetSubscriptionArn()) { parameters["SubscriptionArn"] = request.SubscriptionArn; } return parameters; }