Пример #1
0
        public void SaveApi(SimpleAuth.Api api)
        {
            var id     = int.Parse(api.Identifier);
            var record = new ApiModel
            {
                Id        = id,
                Service   = GetServiceType(api),
                DeviceId  = api.DeviceId,
                ExtraData = api.ExtraDataString,
            };

            Settings.AddApiModel(record);
        }