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 Filter information, used in Place Discovery and Search requests
24 /// <since_tizen>3</since_tizen>
25 public class PlaceFilter : IDisposable
27 internal Interop.PlaceFilterHandle handle;
30 /// Constructs new place filter.
32 /// <since_tizen>3</since_tizen>
33 /// <exception cref="System.InvalidOperationException">Thrown when native operation failed to allocate memory.</exception>
36 handle = new Interop.PlaceFilterHandle();
40 /// Gets or sets an free-formed address string for this place filter.
42 /// <since_tizen>3</since_tizen>
43 /// <remarks>Depending on maps provider which the application has selected,
44 /// it may treat <see cref="PlaceFilter.Name"/>, <see cref="PlaceFilter.Keyword"/> and <see cref="PlaceFilter.Address"/>
45 /// as same kind of strings to search places.</remarks>
50 return handle.PlaceAddress;
54 handle.PlaceAddress = value;
59 /// Gets or sets an instance of <see cref="PlaceCategory"/> object for this place filter.
61 /// <since_tizen>3</since_tizen>
62 public PlaceCategory Category
66 return new PlaceCategory(handle.Category);
70 handle.Category = value.handle;
75 /// Gets or sets a keyword for this place filter.
77 /// <since_tizen>3</since_tizen>
78 /// <remarks>Depending on maps provider which the application has selected,
79 /// it may treat <see cref="PlaceFilter.Name"/>, <see cref="PlaceFilter.Keyword"/> and <see cref="PlaceFilter.Address"/>
80 /// as same kind of strings to search places.</remarks>
85 return handle.Keyword;
89 handle.Keyword = value;
94 /// Gets or sets a name for this place filter.
96 /// <since_tizen>3</since_tizen>
97 /// <remarks>Depending on maps provider which the application has selected,
98 /// it may treat <see cref="PlaceFilter.Name"/>, <see cref="PlaceFilter.Keyword"/> and <see cref="PlaceFilter.Address"/>
99 /// as same kind of strings to search places.</remarks>
104 return handle.PlaceName;
108 handle.PlaceName = value;
112 #region IDisposable Support
113 private bool _disposedValue = false;
115 protected virtual void Dispose(bool disposing)
120 _disposedValue = true;
125 /// Releases all resources used by this object.
127 /// <since_tizen>3</since_tizen>
128 public void Dispose()
131 GC.SuppressFinalize(this);