コード例 #1
0
        public void Save(IEnumerable <EndpointSettingDataModel> endpointSettings)
        {
            var target = new EndpointSettingListForSerialize(endpointSettings);

            FileIOUtility.Write(target, "EndpointSetting");

            endpointList = endpointSettings.ToList();
        }
コード例 #2
0
        public void Save(GlobalFrameOffset frameOffset)
        {
            onDataChangedSubject.OnNext(frameOffset);

            FileIOUtility.Write(frameOffset, "OffsetFrame");

            cache = frameOffset;
        }
コード例 #3
0
        public void Save(bool enabled, IEnumerable <MidiMappingSettingDataModel> endpointSettings)
        {
            var target = new MidiMappingSettingListForSerialize(enabled, endpointSettings);

            FileIOUtility.Write(target, "MidiMappingSetting");

            mappingList  = endpointSettings.ToList();
            this.enabled = enabled;
        }
コード例 #4
0
        public void Save(ObsWebsocketSettingDataModel setting)
        {
            setting.ServerAddress = AesEncryption.Encrypt(setting.ServerAddress);
            setting.Password      = AesEncryption.Encrypt(setting.Password);

            FileIOUtility.Write(setting, "ObsWebsocket");

            cache = setting;
        }
コード例 #5
0
        public void Save(IEnumerable <TimecodeSetting> endpointSettings)
        {
            var target = new TimecodeSettingListForSerialize(endpointSettings);

            FileIOUtility.Write(target, "TimecodeSetting");

            endpointList = endpointSettings.ToList();

            Debug.Log($"Saved : {JsonFilePath}");
        }
コード例 #6
0
        public void Save(IEnumerable <CommandSetting> commandSettings)
        {
            var enumerable = commandSettings as CommandSetting[] ?? commandSettings.ToArray();

            onDataChangedSubject.OnNext(enumerable);

            var target = new CommandSettingListForSerialize(enumerable);

            FileIOUtility.Write(target, "CommandSetting");

            commandList = enumerable.ToList();
        }
コード例 #7
0
        public void Save(OnAirSettingDataModel onAirSettingDataModel)
        {
            FileIOUtility.Write(onAirSettingDataModel, "OnAirSetting");

            this.onAirSettingDataModel = onAirSettingDataModel;
        }
コード例 #8
0
 private void Save(AudioDeviceSettingForSerialize data)
 {
     FileIOUtility.Write(data, "OnAirSetting");
 }