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.
22 /// Place Category information, used in Place Discovery and Search requests
24 /// <since_tizen>3</since_tizen>
25 public class PlaceCategory : IDisposable
27 internal Interop.PlaceCategoryHandle handle;
30 /// Constructs search category object.
32 /// <since_tizen>3</since_tizen>
33 /// <exception cref="System.InvalidOperationException">Thrown when native operation failed to allocate memory.</exception>
34 public PlaceCategory()
36 handle = new Interop.PlaceCategoryHandle();
39 internal PlaceCategory(Interop.PlaceCategoryHandle nativeHandle)
41 handle = nativeHandle;
46 /// Gets or sets an ID for this category.
48 /// <since_tizen>3</since_tizen>
51 get { return handle.Id; }
52 set { handle.Id = value; }
56 /// Gets or sets a name for this category.
58 /// <since_tizen>3</since_tizen>
61 get { return handle.Name; }
62 set { handle.Name = value; }
66 /// Gets or sets an URL for this category.
68 /// <since_tizen>3</since_tizen>
71 get { return handle.Url; }
72 set { handle.Url = value; }
76 /// Returns a string that represents this object.
78 /// <since_tizen>3</since_tizen>
79 /// <returns>Returns a string which presents this object.</returns>
80 public override string ToString()
85 #region IDisposable Support
86 private bool _disposedValue = false;
88 protected virtual void Dispose(bool disposing)
93 _disposedValue = true;
98 /// Releases all resources used by this object.
100 /// <since_tizen>3</since_tizen>
101 public void Dispose()
104 GC.SuppressFinalize(this);