2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 namespace Tizen.Network.IoTConnectivity
23 /// Class respresenting request to a resource.
24 /// It provides APIs to manage client's request.
26 /// <since_tizen> 3 </since_tizen>
27 public class Request : IDisposable
29 private bool _disposed = false;
36 /// Destructor of the Request class.
44 /// The host address of the request.
46 /// <since_tizen> 3 </since_tizen>
47 /// <value>The host address of the request.</value>
48 public string HostAddress { get; internal set; }
51 /// The representation of the request.
53 /// <since_tizen> 3 </since_tizen>
54 /// <value>The representation of the request.</value>
55 public Representation Representation { get; internal set; }
58 /// The query of the request.
60 /// <since_tizen> 3 </since_tizen>
61 /// <value>The query of the request.</value>
62 public ResourceQuery Query { get; internal set; }
65 /// The options related to the request.
67 /// <since_tizen> 3 </since_tizen>
68 /// <value>The options related to the request.</value>
69 public ResourceOptions Options { get; internal set; }
72 /// Releases any unmanaged resources used by this object.
74 /// <since_tizen> 3 </since_tizen>
75 /// <feature>http://tizen.org/feature/iot.ocf</feature>
79 GC.SuppressFinalize(this);
83 /// Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
85 /// <since_tizen> 3 </since_tizen>
86 /// <param name="disposing">If true, disposes any disposable objects. If false, does not dispose disposable objects.</param>
87 /// <feature>http://tizen.org/feature/iot.ocf</feature>
88 protected virtual void Dispose(bool disposing)
95 Representation?.Dispose();