Click or drag to resize

LoyaltyCampaignOfferClientSelectCampaignOfferForMember Method

Syntax
C#
public ResultOfCampaignOffer SelectCampaignOfferForMember(
	ManagementGroupRequestOfCampaignOfferForMemberDetail request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfCampaignOfferForMemberDetail

Return Value

Type: ResultOfCampaignOffer
Examples
C#
using (var svc = new LoyaltyService.LoyaltyCampaignOfferClient())
{
  var request = new LoyaltyService.ManagementGroupRequestOfCampaignOfferForMemberDetail();
  request.Token = "Token";//Required - Token returned from AccountService.ManagementGroupLogin
  request.ManagementGroup = "Management group";//Required - ManagementGroup supplied when calling AccountService.ManagementGroupLogin

  var search = new LoyaltyService.CampaignOfferForMemberDetail();
  search.CampaignOffer_RSN = new Guid("2a2799ab-78c9-4e3f-942d-b33469b8c933");;//Required - RSN of campaign offer
  search.Member_RSN = new Guid("a180f705-9ef0-47e7-9e4c-8591fd52734a");;//Required - RSN of member

  //add search to request
  request.Value = search;

  LoyaltyService.ResultOfCampaignOffer result = svc.SelectCampaignOfferForMember(request);

  if (result.FaultCode == 0)
  {
    //Request succeeded.
  }
  else
  {
    //Request failed
    throw new Exception(result.FaultDescription);
  }
}
See Also