Click or drag to resize

LoyaltyProductClientSetProductFeaturedImage Method

Syntax
C#
public Result SetProductFeaturedImage(
	ManagementGroupRequestOfProductSetFeaturedImage request
)

Parameters

request
Type: LoyaltyServiceManagementGroupRequestOfProductSetFeaturedImage

Return Value

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

  var setFeaturedImage = new LoyaltyService.ProductSetFeaturedImage();
  setFeaturedImage.ProductRSN = new Guid("873b8a01-0f29-445c-85e0-97aa1e1dc7e2");;//Required - RSN of product
  setFeaturedImage.ImageRSN = new Guid("d7c62984-b99e-47e9-bf1f-ef71ae547e14");;//Required - RSN of image

  request.Value = setFeaturedImage;//Required

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

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