IJsonpWsEndUserSetReadNews 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]
[WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetReadNews/{jsonp}/{userName}/{token}/{newsId}/{newsSenderType}")]
Stream SetReadNews(
string jsonp,
string userName,
string token,
string newsId,
string newsSenderType
)<OperationContractAttribute>
<WebGetAttribute(ResponseFormat := WebMessageFormat.Json, UriTemplate := "SetReadNews/{jsonp}/{userName}/{token}/{newsId}/{newsSenderType}")>
Function SetReadNews (
jsonp As String,
userName As String,
token As String,
newsId As String,
newsSenderType As String
) As Stream[OperationContractAttribute]
[WebGetAttribute(ResponseFormat = WebMessageFormat::Json, UriTemplate = L"SetReadNews/{jsonp}/{userName}/{token}/{newsId}/{newsSenderType}")]
Stream^ SetReadNews(
String^ jsonp,
String^ userName,
String^ token,
String^ newsId,
String^ newsSenderType
)[<OperationContractAttribute>]
[<WebGetAttribute(ResponseFormat = WebMessageFormat.Json, UriTemplate = "SetReadNews/{jsonp}/{userName}/{token}/{newsId}/{newsSenderType}")>]
abstract SetReadNews :
jsonp : string *
userName : string *
token : string *
newsId : string *
newsSenderType : string -> Stream
function SetReadNews(
jsonp : String,
userName : String,
token : String,
newsId : String,
newsSenderType : String
) : Stream
Parameters
- jsonp
- Type: SystemString
- userName
- Type: SystemString
- token
- Type: SystemString
- newsId
- Type: SystemString
- newsSenderType
- Type: SystemString
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