Exemplo n.º 1
0
 /// <summary>
 /// Event arguments for CoAP response callbacks.
 /// </summary>
 /// <param name="Client">UDP Client.</param>
 /// <param name="Endpoint">CoAP Endpoint.</param>
 /// <param name="Message">CoAP message.</param>
 /// <param name="Resource">CoAP resource if relevant.</param>
 internal CoapMessageEventArgs(ClientBase Client, CoapEndpoint Endpoint, CoapMessage Message,
                               CoapResource Resource)
 {
     this.client   = Client;
     this.endpoint = Endpoint;
     this.message  = Message;
     this.resource = Resource;
 }
Exemplo n.º 2
0
 /// <summary>
 /// CoAP response to return to a received request.
 /// </summary>
 /// <param name="Client">Client receiving the response.</param>
 /// <param name="Endpoint">CoAP Endpoint.</param>
 /// <param name="RemoteEndpoint">Remote endpoint.</param>
 /// <param name="Request">Request.</param>
 /// <param name="Notifications">How notifications are sent, if at all.</param>
 /// <param name="Resource">CoAP resource.</param>
 /// <param name="AdditionalResponseOptions">Additional response options.</param>
 internal CoapResponse(ClientBase Client, CoapEndpoint Endpoint, IPEndPoint RemoteEndpoint,
                       CoapMessage Request, Notifications Notifications, CoapResource Resource, params CoapOption[] AdditionalResponseOptions)
 {
     this.client                    = Client;
     this.endpoint                  = Endpoint;
     this.remoteEndpoint            = RemoteEndpoint;
     this.request                   = Request;
     this.notifications             = Notifications;
     this.resource                  = Resource;
     this.additionalResponseOptions = AdditionalResponseOptions;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Event arguments for CoAP response callbacks.
 /// </summary>
 /// <param name="Client">UDP Client.</param>
 /// <param name="Endpoint">CoAP Endpoint.</param>
 /// <param name="Ok">If the request was successful or not.</param>
 /// <param name="State">State object passed to the original request.</param>
 /// <param name="Message">Response message.</param>
 /// <param name="Resource">Resource</param>
 internal CoapResponseEventArgs(ClientBase Client, CoapEndpoint Endpoint, bool Ok, object State, CoapMessage Message, CoapResource Resource)
     : base(Client, Endpoint, Message, Resource)
 {
     this.ok    = Ok;
     this.state = State;
 }