Click or drag to resize

IWsCommonSetReadNews Method

Using the method SetReadNews of Aruba WsCommon, you can set readed's news property.

Namespace:  Aruba.Cloud.WsCommon
Assembly:  Aruba.Cloud.WsCommon (in Aruba.Cloud.WsCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[OperationContractAttribute]
WsResult SetReadNews(
	SetReadNewsRequest request
)

Parameters

request
Type: SetReadNewsRequest

Return Value

Type: WsResult
Examples
This is a c# call example:
private static void Test_WsCommon_SetReadNews()
{
    using (var client = new WsCommon.WsCommonClient())
    {
        client.ClientCredentials.UserName.UserName = "ARU-0000";
        client.ClientCredentials.UserName.Password = "0123456789";

        var res = client.SetReadNews(new WsCommon.SetReadNewsRequest() { SenderType = WsCommon.NewsSenderTypes.Operator, NewsID = 30 });

        if (res.Success)
        {
            Console.WriteLine("Success");
        }
        else
        {
            throw new Exception(res.ResultMessage);
        }
    }
    Console.ReadLine();
}
This is an example of a response by SetReadNews:
SetReadNewsResponse: {
   SetReadNewsResult: {
      ExceptionInfo: [System.String],
      ResultCode: 0,
      ResultMessage: [System.String],
      Success: true,
      },
      }
See Also