IJsonPostWsEndUserSetReadNews Method
|
Set a News as read. By the method SetReadNews () of Aruba WsEndUser,
is a report notifications as read in a manner that does not resubmit it to the user.
Namespace:
Aruba.Cloud.WsEndUser
Assembly:
Aruba.Cloud.WsEndUser (in Aruba.Cloud.WsEndUser.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax[OperationContractAttribute]
[WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)]
Stream SetReadNews(
SetReadNewsRequest request
)
<OperationContractAttribute>
<WebInvokeAttribute(Method := "POST", ResponseFormat := WebMessageFormat.Json)>
Function SetReadNews (
request As SetReadNewsRequest
) As Stream
[OperationContractAttribute]
[WebInvokeAttribute(Method = L"POST", ResponseFormat = WebMessageFormat::Json)]
Stream^ SetReadNews(
SetReadNewsRequest^ request
)
[<OperationContractAttribute>]
[<WebInvokeAttribute(Method = "POST", ResponseFormat = WebMessageFormat.Json)>]
abstract SetReadNews :
request : SetReadNewsRequest -> Stream
function SetReadNews(
request : SetReadNewsRequest
) : Stream
Parameters
- request
- Type: Aruba.Cloud.WsEndUser.JsonSetReadNewsRequest
Return Value
Type:
Stream
The method returns an object WsResult contains information about the method call.
Examples
In the following example describes a custom method, called ReadNews (), which via a call
the method SetReadNews () to Aruba WsEndUser.
private void ReadNews()
{
try
{
Int32 newsID=10;
NewsSenderTypes senderType=NewsSenderTypes.Operator;
WsResult result = client.SetReadNews(newsID,senderType);
if (!result.Success)
{
throw new ApplicationException(String.Format(
"An error has occurred while invoking SetReadNews(). {0}", result.ResultMessage));
}
}
catch (Exception ex)
{
throw new ApplicationException(String.Format("An error has occurred read News {0}", ex.Message));
}
}
See Also