private void OnLinkAccounts1Response(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling LinkAccounts1: " + response.Error); } KnetikLogger.LogResponse(mLinkAccounts1StartTime, "LinkAccounts1", "Response received successfully."); if (LinkAccounts1Complete != null) { LinkAccounts1Complete(response.ResponseCode); } }
private void OnDisableTopicSubscriberResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling DisableTopicSubscriber: " + response.Error); } KnetikLogger.LogResponse(mDisableTopicSubscriberStartTime, "DisableTopicSubscriber", "Response received successfully."); if (DisableTopicSubscriberComplete != null) { DisableTopicSubscriberComplete(response.ResponseCode); } }
private void OnIncrementProgressResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling IncrementProgress: " + response.Error); } KnetikLogger.LogResponse(mIncrementProgressStartTime, "IncrementProgress", "Response received successfully."); if (IncrementProgressComplete != null) { IncrementProgressComplete(response.ResponseCode); } }
private void OnSilenceDirectNotificationsResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling SilenceDirectNotifications: " + response.Error); } KnetikLogger.LogResponse(mSilenceDirectNotificationsStartTime, "SilenceDirectNotifications", "Response received successfully."); if (SilenceDirectNotificationsComplete != null) { SilenceDirectNotificationsComplete(response.ResponseCode); } }
private void OnFinalizePayPalCheckoutResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling FinalizePayPalCheckout: " + response.Error); } KnetikLogger.LogResponse(mFinalizePayPalCheckoutStartTime, "FinalizePayPalCheckout", "Response received successfully."); if (FinalizePayPalCheckoutComplete != null) { FinalizePayPalCheckoutComplete(response.ResponseCode); } }
private void OnEditChatMessageResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling EditChatMessage: " + response.Error); } KnetikLogger.LogResponse(mEditChatMessageStartTime, "EditChatMessage", "Response received successfully."); if (EditChatMessageComplete != null) { EditChatMessageComplete(response.ResponseCode); } }
private void OnProcessSubscriptionsResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling ProcessSubscriptions: " + response.Error); } KnetikLogger.LogResponse(mProcessSubscriptionsStartTime, "ProcessSubscriptions", "Response received successfully."); if (ProcessSubscriptionsComplete != null) { ProcessSubscriptionsComplete(response.ResponseCode); } }
private void OnAddItemToCartResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling AddItemToCart: " + response.Error); } KnetikLogger.LogResponse(mAddItemToCartStartTime, "AddItemToCart", "Response received successfully."); if (AddItemToCartComplete != null) { AddItemToCartComplete(response.ResponseCode); } }
private void OnRedeemFriendshipTokenResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling RedeemFriendshipToken: " + response.Error); } KnetikLogger.LogResponse(mRedeemFriendshipTokenStartTime, "RedeemFriendshipToken", "Response received successfully."); if (RedeemFriendshipTokenComplete != null) { RedeemFriendshipTokenComplete(response.ResponseCode); } }
private void OnSetSubscriptionPaymentMethodResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling SetSubscriptionPaymentMethod: " + response.Error); } KnetikLogger.LogResponse(mSetSubscriptionPaymentMethodStartTime, "SetSubscriptionPaymentMethod", "Response received successfully."); if (SetSubscriptionPaymentMethodComplete != null) { SetSubscriptionPaymentMethodComplete(response.ResponseCode); } }
private void OnUpdateArtistResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling UpdateArtist: " + response.Error); } KnetikLogger.LogResponse(mUpdateArtistStartTime, "UpdateArtist", "Response received successfully."); if (UpdateArtistComplete != null) { UpdateArtistComplete(response.ResponseCode); } }
private void OnSetBRERuleResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling SetBRERule: " + response.Error); } KnetikLogger.LogResponse(mSetBRERuleStartTime, "SetBRERule", "Response received successfully."); if (SetBRERuleComplete != null) { SetBRERuleComplete(response.ResponseCode); } }
private void OnRemoveDiscountFromCartResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling RemoveDiscountFromCart: " + response.Error); } KnetikLogger.LogResponse(mRemoveDiscountFromCartStartTime, "RemoveDiscountFromCart", "Response received successfully."); if (RemoveDiscountFromCartComplete != null) { RemoveDiscountFromCartComplete(response.ResponseCode); } }
private void OnDeleteShippingTemplateResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling DeleteShippingTemplate: " + response.Error); } KnetikLogger.LogResponse(mDeleteShippingTemplateStartTime, "DeleteShippingTemplate", "Response received successfully."); if (DeleteShippingTemplateComplete != null) { DeleteShippingTemplateComplete(response.ResponseCode); } }
private void OnPaymentCaptureResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling PaymentCapture: " + response.Error); } KnetikLogger.LogResponse(mPaymentCaptureStartTime, "PaymentCapture", "Response received successfully."); if (PaymentCaptureComplete != null) { PaymentCaptureComplete(response.ResponseCode); } }
private void OnRemoveOrDeclineFriendResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling RemoveOrDeclineFriend: " + response.Error); } KnetikLogger.LogResponse(mRemoveOrDeclineFriendStartTime, "RemoveOrDeclineFriend", "Response received successfully."); if (RemoveOrDeclineFriendComplete != null) { RemoveOrDeclineFriendComplete(response.ResponseCode); } }
private void OnAnswerPollResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling AnswerPoll: " + response.Error); } AnswerPollData = (PollResponseResource)KnetikClient.Deserialize(response.Content, typeof(PollResponseResource), response.Headers); KnetikLogger.LogResponse(mAnswerPollStartTime, "AnswerPoll", string.Format("Response received successfully:\n{0}", AnswerPollData)); if (AnswerPollComplete != null) { AnswerPollComplete(response.ResponseCode, AnswerPollData); } }
private void OnGetBRERulesResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetBRERules: " + response.Error); } GetBRERulesData = (PageResourceBreRule)KnetikClient.Deserialize(response.Content, typeof(PageResourceBreRule), response.Headers); KnetikLogger.LogResponse(mGetBRERulesStartTime, "GetBRERules", string.Format("Response received successfully:\n{0}", GetBRERulesData)); if (GetBRERulesComplete != null) { GetBRERulesComplete(response.ResponseCode, GetBRERulesData); } }
private void OnGetShippingItemResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetShippingItem: " + response.Error); } GetShippingItemData = (ShippingItem)KnetikClient.Deserialize(response.Content, typeof(ShippingItem), response.Headers); KnetikLogger.LogResponse(mGetShippingItemStartTime, "GetShippingItem", string.Format("Response received successfully:\n{0}", GetShippingItemData)); if (GetShippingItemComplete != null) { GetShippingItemComplete(response.ResponseCode, GetShippingItemData); } }
private void OnCreateShippingTemplateResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling CreateShippingTemplate: " + response.Error); } CreateShippingTemplateData = (ItemTemplateResource)KnetikClient.Deserialize(response.Content, typeof(ItemTemplateResource), response.Headers); KnetikLogger.LogResponse(mCreateShippingTemplateStartTime, "CreateShippingTemplate", string.Format("Response received successfully:\n{0}", CreateShippingTemplateData)); if (CreateShippingTemplateComplete != null) { CreateShippingTemplateComplete(response.ResponseCode, CreateShippingTemplateData); } }
private void OnPaymentAuthorizationResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling PaymentAuthorization: " + response.Error); } PaymentAuthorizationData = (PaymentAuthorizationResource)KnetikClient.Deserialize(response.Content, typeof(PaymentAuthorizationResource), response.Headers); KnetikLogger.LogResponse(mPaymentAuthorizationStartTime, "PaymentAuthorization", string.Format("Response received successfully:\n{0}", PaymentAuthorizationData)); if (PaymentAuthorizationComplete != null) { PaymentAuthorizationComplete(response.ResponseCode, PaymentAuthorizationData); } }
private void OnHandleGooglePaymentResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling HandleGooglePayment: " + response.Error); } HandleGooglePaymentData = (int?)KnetikClient.Deserialize(response.Content, typeof(int?), response.Headers); KnetikLogger.LogResponse(mHandleGooglePaymentStartTime, "HandleGooglePayment", string.Format("Response received successfully:\n{0}", HandleGooglePaymentData)); if (HandleGooglePaymentComplete != null) { HandleGooglePaymentComplete(response.ResponseCode, HandleGooglePaymentData); } }
private void OnReactivateUserSubscriptionResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling ReactivateUserSubscription: " + response.Error); } ReactivateUserSubscriptionData = (InvoiceResource)KnetikClient.Deserialize(response.Content, typeof(InvoiceResource), response.Headers); KnetikLogger.LogResponse(mReactivateUserSubscriptionStartTime, "ReactivateUserSubscription", string.Format("Response received successfully:\n{0}", ReactivateUserSubscriptionData)); if (ReactivateUserSubscriptionComplete != null) { ReactivateUserSubscriptionComplete(response.ResponseCode, ReactivateUserSubscriptionData); } }
private void OnUpdateBRERuleResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling UpdateBRERule: " + response.Error); } UpdateBRERuleData = (BreRule)KnetikClient.Deserialize(response.Content, typeof(BreRule), response.Headers); KnetikLogger.LogResponse(mUpdateBRERuleStartTime, "UpdateBRERule", string.Format("Response received successfully:\n{0}", UpdateBRERuleData)); if (UpdateBRERuleComplete != null) { UpdateBRERuleComplete(response.ResponseCode, UpdateBRERuleData); } }
private void OnGetSubscriptionRevenueResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetSubscriptionRevenue: " + response.Error); } GetSubscriptionRevenueData = (RevenueReportResource)KnetikClient.Deserialize(response.Content, typeof(RevenueReportResource), response.Headers); KnetikLogger.LogResponse(mGetSubscriptionRevenueStartTime, "GetSubscriptionRevenue", string.Format("Response received successfully:\n{0}", GetSubscriptionRevenueData)); if (GetSubscriptionRevenueComplete != null) { GetSubscriptionRevenueComplete(response.ResponseCode, GetSubscriptionRevenueData); } }
private void OnSendBREEventResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling SendBREEvent: " + response.Error); } SendBREEventData = (string)KnetikClient.Deserialize(response.Content, typeof(string), response.Headers); KnetikLogger.LogResponse(mSendBREEventStartTime, "SendBREEvent", string.Format("Response received successfully:\n{0}", SendBREEventData)); if (SendBREEventComplete != null) { SendBREEventComplete(response.ResponseCode, SendBREEventData); } }
private void OnCompileMessageTemplateResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling CompileMessageTemplate: " + response.Error); } CompileMessageTemplateData = (Dictionary <string, string>)KnetikClient.Deserialize(response.Content, typeof(Dictionary <string, string>), response.Headers); KnetikLogger.LogResponse(mCompileMessageTemplateStartTime, "CompileMessageTemplate", string.Format("Response received successfully:\n{0}", CompileMessageTemplateData)); if (CompileMessageTemplateComplete != null) { CompileMessageTemplateComplete(response.ResponseCode, CompileMessageTemplateData); } }
private void OnVerifyAppleReceiptResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling VerifyAppleReceipt: " + response.Error); } VerifyAppleReceiptData = (string)KnetikClient.Deserialize(response.Content, typeof(string), response.Headers); KnetikLogger.LogResponse(mVerifyAppleReceiptStartTime, "VerifyAppleReceipt", string.Format("Response received successfully:\n{0}", VerifyAppleReceiptData)); if (VerifyAppleReceiptComplete != null) { VerifyAppleReceiptComplete(response.ResponseCode, VerifyAppleReceiptData); } }
private void OnGetSignedS3URLResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetSignedS3URL: " + response.Error); } GetSignedS3URLData = (AmazonS3Activity)KnetikClient.Deserialize(response.Content, typeof(AmazonS3Activity), response.Headers); KnetikLogger.LogResponse(mGetSignedS3URLStartTime, "GetSignedS3URL", string.Format("Response received successfully:\n{0}", GetSignedS3URLData)); if (GetSignedS3URLComplete != null) { GetSignedS3URLComplete(response.ResponseCode, GetSignedS3URLData); } }
private void OnGetUsersSubscriptionDetailsResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetUsersSubscriptionDetails: " + response.Error); } GetUsersSubscriptionDetailsData = (List <InventorySubscriptionResource>)KnetikClient.Deserialize(response.Content, typeof(List <InventorySubscriptionResource>), response.Headers); KnetikLogger.LogResponse(mGetUsersSubscriptionDetailsStartTime, "GetUsersSubscriptionDetails", string.Format("Response received successfully:\n{0}", GetUsersSubscriptionDetailsData)); if (GetUsersSubscriptionDetailsComplete != null) { GetUsersSubscriptionDetailsComplete(response.ResponseCode, GetUsersSubscriptionDetailsData); } }