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 public class PlaceCategory : IDisposable
26 internal Interop.PlaceCategoryHandle handle;
29 /// Constructs search category object
31 /// <exception cref="System.InvalidOperationException">Throws if native operation failed to allocate memory</exception>
32 public PlaceCategory()
34 handle = new Interop.PlaceCategoryHandle();
37 internal PlaceCategory(Interop.PlaceCategoryHandle nativeHandle)
39 handle = nativeHandle;
44 /// ID for this category
48 get { return handle.Id; }
49 set { handle.Id = value; }
53 /// Name for this category
57 get { return handle.Name; }
58 set { handle.Name = value; }
62 /// URL for this category
66 get { return handle.Url; }
67 set { handle.Url = value; }
70 public override string ToString()
75 #region IDisposable Support
76 private bool _disposedValue = false;
78 protected virtual void Dispose(bool disposing)
83 _disposedValue = true;