public void DeleteMessage(string channelId, long messageId, Action <FizzException> callback) { IfOpened(() => { if (string.IsNullOrEmpty(channelId)) { FizzUtils.DoCallback(ERROR_INVALID_CHANNEL, callback); return; } if (messageId < 1) { FizzUtils.DoCallback(ERROR_INVALID_MESSAGE_ID, callback); return; } try { string path = string.Format(FizzConfig.API_PATH_MESSAGE_ACTION, channelId, messageId); _restClient.Delete(FizzConfig.API_BASE_URL, path, string.Empty, (response, ex) => { FizzUtils.DoCallback(ex, callback); }); } catch (FizzException ex) { FizzUtils.DoCallback(ex, callback); } }); }
public void Unsubscribe(string userId, Action <FizzException> callback) { IfOpened(() => { string path = string.Format(FizzConfig.API_PATH_USER_SUBCRIBERS, userId); _client.Delete(FizzConfig.API_BASE_URL, path, string.Empty, (response, ex) => { FizzUtils.DoCallback(ex, callback); }); }); }
public void Unsubscribe(Action <FizzException> callback) { IfOpened(() => { string path = FizzConfig.API_PATH_USER_NOTIFICATIONS; _client.Delete(FizzConfig.API_BASE_URL, path, string.Empty, (response, ex) => { FizzUtils.DoCallback(ex, callback); }); }); }