private void OnUpdatePermissionResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling UpdatePermission: " + response.Error); } UpdatePermissionData = (PermissionResource)KnetikClient.Deserialize(response.Content, typeof(PermissionResource), response.Headers); KnetikLogger.LogResponse(mUpdatePermissionStartTime, "UpdatePermission", string.Format("Response received successfully:\n{0}", UpdatePermissionData)); if (UpdatePermissionComplete != null) { UpdatePermissionComplete(response.ResponseCode, UpdatePermissionData); } }
private void OnGetRevenueByItemResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetRevenueByItem: " + response.Error); } GetRevenueByItemData = (PageResourceRevenueProductReportResource)KnetikClient.Deserialize(response.Content, typeof(PageResourceRevenueProductReportResource), response.Headers); KnetikLogger.LogResponse(mGetRevenueByItemStartTime, "GetRevenueByItem", string.Format("Response received successfully:\n{0}", GetRevenueByItemData)); if (GetRevenueByItemComplete != null) { GetRevenueByItemComplete(response.ResponseCode, GetRevenueByItemData); } }
private void OnAddArtistResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling AddArtist: " + response.Error); } AddArtistData = (ArtistResource)KnetikClient.Deserialize(response.Content, typeof(ArtistResource), response.Headers); KnetikLogger.LogResponse(mAddArtistStartTime, "AddArtist", string.Format("Response received successfully:\n{0}", AddArtistData)); if (AddArtistComplete != null) { AddArtistComplete(response.ResponseCode, AddArtistData); } }
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 OnGetShippingCountriesResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetShippingCountries: " + response.Error); } GetShippingCountriesData = (SampleCountriesResponse)KnetikClient.Deserialize(response.Content, typeof(SampleCountriesResponse), response.Headers); KnetikLogger.LogResponse(mGetShippingCountriesStartTime, "GetShippingCountries", string.Format("Response received successfully:\n{0}", GetShippingCountriesData)); if (GetShippingCountriesComplete != null) { GetShippingCountriesComplete(response.ResponseCode, GetShippingCountriesData); } }
private void OnFinalizePayPalBillingAgreementResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling FinalizePayPalBillingAgreement: " + response.Error); } FinalizePayPalBillingAgreementData = (int?)KnetikClient.Deserialize(response.Content, typeof(int?), response.Headers); KnetikLogger.LogResponse(mFinalizePayPalBillingAgreementStartTime, "FinalizePayPalBillingAgreement", string.Format("Response received successfully:\n{0}", FinalizePayPalBillingAgreementData)); if (FinalizePayPalBillingAgreementComplete != null) { FinalizePayPalBillingAgreementComplete(response.ResponseCode, FinalizePayPalBillingAgreementData); } }
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 OnGetBREVariableValuesResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetBREVariableValues: " + response.Error); } GetBREVariableValuesData = (PageResourceSimpleReferenceResourceobject)KnetikClient.Deserialize(response.Content, typeof(PageResourceSimpleReferenceResourceobject), response.Headers); KnetikLogger.LogResponse(mGetBREVariableValuesStartTime, "GetBREVariableValues", string.Format("Response received successfully:\n{0}", GetBREVariableValuesData)); if (GetBREVariableValuesComplete != null) { GetBREVariableValuesComplete(response.ResponseCode, GetBREVariableValuesData); } }
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); } }
private void OnCreateOrUpdateFattMerchantPaymentMethodResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling CreateOrUpdateFattMerchantPaymentMethod: " + response.Error); } CreateOrUpdateFattMerchantPaymentMethodData = (PaymentMethodResource)KnetikClient.Deserialize(response.Content, typeof(PaymentMethodResource), response.Headers); KnetikLogger.LogResponse(mCreateOrUpdateFattMerchantPaymentMethodStartTime, "CreateOrUpdateFattMerchantPaymentMethod", string.Format("Response received successfully:\n{0}", CreateOrUpdateFattMerchantPaymentMethodData)); if (CreateOrUpdateFattMerchantPaymentMethodComplete != null) { CreateOrUpdateFattMerchantPaymentMethodComplete(response.ResponseCode, CreateOrUpdateFattMerchantPaymentMethodData); } }
private void OnGetBatchResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetBatch: " + response.Error); } GetBatchData = (List <BatchReturn>)KnetikClient.Deserialize(response.Content, typeof(List <BatchReturn>), response.Headers); KnetikLogger.LogResponse(mGetBatchStartTime, "GetBatch", string.Format("Response received successfully:\n{0}", GetBatchData)); if (GetBatchComplete != null) { GetBatchComplete(response.ResponseCode, GetBatchData); } }
private void OnGetExpressionAsTextResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetExpressionAsText: " + response.Error); } GetExpressionAsTextData = (StringWrapper)KnetikClient.Deserialize(response.Content, typeof(StringWrapper), response.Headers); KnetikLogger.LogResponse(mGetExpressionAsTextStartTime, "GetExpressionAsText", string.Format("Response received successfully:\n{0}", GetExpressionAsTextData)); if (GetExpressionAsTextComplete != null) { GetExpressionAsTextComplete(response.ResponseCode, GetExpressionAsTextData); } }
private void OnGetChallengeEventParticipantsResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetChallengeEventParticipants: " + response.Error); } GetChallengeEventParticipantsData = (PageResourceChallengeEventParticipantResource)KnetikClient.Deserialize(response.Content, typeof(PageResourceChallengeEventParticipantResource), response.Headers); KnetikLogger.LogResponse(mGetChallengeEventParticipantsStartTime, "GetChallengeEventParticipants", string.Format("Response received successfully:\n{0}", GetChallengeEventParticipantsData)); if (GetChallengeEventParticipantsComplete != null) { GetChallengeEventParticipantsComplete(response.ResponseCode, GetChallengeEventParticipantsData); } }
private void OnGetUserNotificationInfoListResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetUserNotificationInfoList: " + response.Error); } GetUserNotificationInfoListData = (PageResourceNotificationUserTypeResource)KnetikClient.Deserialize(response.Content, typeof(PageResourceNotificationUserTypeResource), response.Headers); KnetikLogger.LogResponse(mGetUserNotificationInfoListStartTime, "GetUserNotificationInfoList", string.Format("Response received successfully:\n{0}", GetUserNotificationInfoListData)); if (GetUserNotificationInfoListComplete != null) { GetUserNotificationInfoListComplete(response.ResponseCode, GetUserNotificationInfoListData); } }
private void OnCreatePollTemplateResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling CreatePollTemplate: " + response.Error); } CreatePollTemplateData = (TemplateResource)KnetikClient.Deserialize(response.Content, typeof(TemplateResource), response.Headers); KnetikLogger.LogResponse(mCreatePollTemplateStartTime, "CreatePollTemplate", string.Format("Response received successfully:\n{0}", CreatePollTemplateData)); if (CreatePollTemplateComplete != null) { CreatePollTemplateComplete(response.ResponseCode, CreatePollTemplateData); } }
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 OnGetPollAnswerResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling GetPollAnswer: " + response.Error); } GetPollAnswerData = (PollResponseResource)KnetikClient.Deserialize(response.Content, typeof(PollResponseResource), response.Headers); KnetikLogger.LogResponse(mGetPollAnswerStartTime, "GetPollAnswer", string.Format("Response received successfully:\n{0}", GetPollAnswerData)); if (GetPollAnswerComplete != null) { GetPollAnswerComplete(response.ResponseCode, GetPollAnswerData); } }
private void OnCreatePayPalExpressCheckoutResponse(KnetikRestResponse response) { if (!string.IsNullOrEmpty(response.Error)) { throw new KnetikException("Error calling CreatePayPalExpressCheckout: " + response.Error); } CreatePayPalExpressCheckoutData = (string)KnetikClient.Deserialize(response.Content, typeof(string), response.Headers); KnetikLogger.LogResponse(mCreatePayPalExpressCheckoutStartTime, "CreatePayPalExpressCheckout", string.Format("Response received successfully:\n{0}", CreatePayPalExpressCheckoutData)); if (CreatePayPalExpressCheckoutComplete != null) { CreatePayPalExpressCheckoutComplete(response.ResponseCode, CreatePayPalExpressCheckoutData); } }