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 a 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;
45 /// Destroy the PlaceCategory object.
53 /// Gets or sets an ID for this category.
55 /// <since_tizen> 3 </since_tizen>
58 get { return handle.Id; }
59 set { handle.Id = value; }
63 /// Gets or sets a name for this category.
65 /// <since_tizen> 3 </since_tizen>
68 get { return handle.Name; }
69 set { handle.Name = value; }
73 /// Gets or sets a URL for this category.
75 /// <since_tizen> 3 </since_tizen>
78 get { return handle.Url; }
79 set { handle.Url = value; }
83 /// Returns a string that represents this object.
85 /// <since_tizen> 3 </since_tizen>
86 /// <returns>Returns a string which presents this object.</returns>
87 public override string ToString()
92 #region IDisposable Support
93 private bool _disposedValue = false;
96 /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
98 /// <param name="disposing">If true, managed and unmanaged resources can be disposed, otherwise only unmanaged resources can be disposed.</param>
99 /// <since_tizen> 3 </since_tizen>
100 protected virtual void Dispose(bool disposing)
105 _disposedValue = true;
110 /// Releases all the resources used by this object.
112 /// <since_tizen> 3 </since_tizen>
113 public void Dispose()
116 GC.SuppressFinalize(this);