2 * Copyright (c) 2019 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.
19 namespace Tizen.Applications
22 /// This class has read-only properties to get the package dependency information.
24 /// <since_tizen> 6 </since_tizen>
25 public class PackageDependencyInformation
30 private string _requiredVersion;
33 /// The ID of package that depends on another.
35 /// <since_tizen> 6 </since_tizen>
36 public string From { get { return _from; } }
39 /// The ID of package that is required by another.
41 /// <since_tizen> </since_tizen>
42 public string To { get { return _to; } }
45 /// The Type of dependency.
47 /// <since_tizen> 6 </since_tizen>
48 public string Type { get { return _type; } }
51 /// The required version.
53 /// <since_tizen> 6 </since_tizen>
54 public string RequiredVersion { get { return _requiredVersion; } }
55 internal static PackageDependencyInformation GetPackageDependencyInformation(string from, string to, string type, string requiredVersion)
57 var pkgDependencyInfo = new PackageDependencyInformation();
58 pkgDependencyInfo._from = from;
59 pkgDependencyInfo._to = to;
60 pkgDependencyInfo._type = type;
61 pkgDependencyInfo._requiredVersion = requiredVersion;
62 return pkgDependencyInfo;