1 /// Copyright 2016 by Samsung Electronics, Inc.,
3 /// This software is the confidential and proprietary information
4 /// of Samsung Electronics, Inc. ("Confidential Information"). You
5 /// shall not disclose such Confidential Information and shall use
6 /// it only in accordance with the terms of the license agreement
7 /// you entered into with Samsung.
11 namespace Tizen.Network.IoTConnectivity
14 /// Class respresenting request to a resource.
15 /// It provides APIs to manage client's request.
17 public class Request : IDisposable
19 private bool _disposed = false;
26 /// Destructor of the Request class.
34 /// The host address of the request
36 public string HostAddress { get; internal set; }
39 /// The representation of the request
41 public Representation Representation { get; internal set; }
44 /// The query of the request
46 public ResourceQuery Query { get; internal set; }
49 /// The options related to the request
51 public ResourceOptions Options { get; internal set; }
54 /// Releases any unmanaged resources used by this object.
59 GC.SuppressFinalize(this);
63 /// Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
65 /// <param name="disposing">If true, disposes any disposable objects. If false, does not dispose disposable objects.</param>
66 protected virtual void Dispose(bool disposing)
73 Representation?.Dispose();