/* * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; namespace Tizen.Applications { /// /// This class has read-only properties to get the package dependency information. /// /// 6 public class PackageDependencyInformation { private string _from; private string _to; private string _type; private string _requiredVersion; /// /// The ID of package that depends on another. /// /// 6 public string From { get { return _from; } } /// /// The ID of package that is required by another. /// /// public string To { get { return _to; } } /// /// The Type of dependency. /// /// 6 public string Type { get { return _type; } } /// /// The required version. /// /// 6 public string RequiredVersion { get { return _requiredVersion; } } internal static PackageDependencyInformation GetPackageDependencyInformation(string from, string to, string type, string requiredVersion) { var pkgDependencyInfo = new PackageDependencyInformation(); pkgDependencyInfo._from = from; pkgDependencyInfo._to = to; pkgDependencyInfo._type = type; pkgDependencyInfo._requiredVersion = requiredVersion; return pkgDependencyInfo; } } }