using System.Collections.Generic; using Unity.Collections; using UnityEngine; using Crowdin.Plugin.Models; namespace Crowdin.Plugin.ScriptableObjects { using Api; using Models.Settings; [CreateAssetMenu(fileName = "CrowdinSettings", menuName = "Crowdin/Settings", order = 0)] public class CrowdinSettings : ScriptableObject, ICrowdinSettings { [SerializeField, ReadOnly] private string organizationDomain; [SerializeField, ReadOnly] private string token; [SerializeField, ReadOnly] private int projectId; [SerializeField, ReadOnly] private int projectIndexInList; [SerializeField, ReadOnly] private ProjectType projectType; [SerializeField, ReadOnly] private int updateOption; [SerializeField, ReadOnly] private LanguageData languageData; [SerializeField, ReadOnly] private TablesSelection stringTablesSelection; [SerializeField, ReadOnly] private TablesSelection assetTablesSelection; [SerializeField, ReadOnly] private List branches; [SerializeField, ReadOnly] private bool preserveEntryIdsOnImport; public CrowdinSettings() { stringTablesSelection = new TablesSelection(); assetTablesSelection = new TablesSelection(); branches = new List(); } public string OrganizationDomain { get => organizationDomain; set => organizationDomain = value; } public string Token { get => token; set => token = value; } public int ProjectId { get => projectId; set => projectId = value; } public int ProjectIndexInList { get => projectIndexInList; set => projectIndexInList = value; } public ProjectType ProjectType { get => projectType; set => projectType = value; } public int UpdateOptionIndex { get => updateOption; set => updateOption = value; } public LanguageData LanguageData => languageData; public TablesSelection StringTablesSelection => stringTablesSelection; public TablesSelection AssetTablesSelection => assetTablesSelection; public List Branches => branches; public bool PreserveEntryIdsOnImport { get => preserveEntryIdsOnImport; set => preserveEntryIdsOnImport = value; } } }