Click or drag to resize

LoyaltyCampaignOfferClientInsertCampaignOfferGalleryImage Method

Syntax
C#
public Result InsertCampaignOfferGalleryImage(
	ManagementGroupRequestOfGalleryImage request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfGalleryImage

Return Value

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

  var galleryImage = new LoyaltyService.GalleryImage();
  galleryImage.RSN = Guid.NewGuid();//Required
  galleryImage.Entity_RSN = new Guid("14e79476-02cf-41f8-a49e-a9e7542c56b2");;//Required - RSN of campaign offer
  galleryImage.DisplayValue = "RedBag.jpg";//Required
  galleryImage.FeaturedImage = false;//Optional
  galleryImage.SourceImage_RSN = new Guid("aa26702f-38b5-469e-b7c9-aa3fb9c81f57");;//Required
  galleryImage.ThumbnailImage_RSN = new Guid("CFF53DB5-2BC1-4FF7-9603-BCAD3E716FA5");//Required
  galleryImage.PrimaryImage_RSN = new Guid("43BB4703-5DC4-478F-B14F-D70C4A86DDCC");//Required

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

  LoyaltyService.Result result = svc.InsertCampaignOfferGalleryImage(request);

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