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 public class Request : IDisposable
28 private bool _disposed = false;
35 /// Destructor of the Request class.
43 /// The host address of the request
45 public string HostAddress { get; internal set; }
48 /// The representation of the request
50 public Representation Representation { get; internal set; }
53 /// The query of the request
55 public ResourceQuery Query { get; internal set; }
58 /// The options related to the request
60 public ResourceOptions Options { get; internal set; }
63 /// Releases any unmanaged resources used by this object.
68 GC.SuppressFinalize(this);
72 /// Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
74 /// <param name="disposing">If true, disposes any disposable objects. If false, does not dispose disposable objects.</param>
75 protected virtual void Dispose(bool disposing)
82 Representation?.Dispose();