Ejemplo n.º 1
0
        public override PListDictionary Serialize()
        {
            var dic = new PListDictionary();

            dic.AddIfTrue(APP_PROXY_KEY, AppProxy);
            dic.AddIfTrue(CONTENT_FILTER_KEY, ContentFilter);
            dic.AddIfTrue(PACKET_TUNNEL_KEY, PacketTunnel);
            dic.AddIfTrue(DNS_PROXY_KEY, DNSProxy);
            return(dic);
        }
Ejemplo n.º 2
0
        public override PListDictionary Serialize()
        {
            var dic = new PListDictionary();

            dic.AddIfTrue(KEY_VALUE_STORAGE_KEY, KeyValueStorage);
            dic.AddIfTrue(ICLOUD_DOCUMENTS_KEY, iCloudDocuments);
            dic.AddIfTrue(CLOUDKIT_KEY, CloudKit);
            dic.AddIfTrue(USE_CUSTOM_CONTAINERS_KEY, UseCustomContainers);

            if (CustomContainers.Count > 0)
            {
                dic.Add(CUSTOM_CONTAINERS_KEY, new PListArray(CustomContainers));
            }

            return(dic);
        }
        public override PListDictionary Serialize()
        {
            var dic = new PListDictionary();

            dic.AddIfTrue(AUDIO_AIRPLAY_PIP_KEY, AudioAirplayPIP);
            dic.AddIfTrue(LOCATION_UPDATES_KEY, LocationUpdates);
            dic.AddIfTrue(VOIP_KEY, VOIP);
            dic.AddIfTrue(NEWSSTAND_DOWNLOADS_KEY, NewsstandDownloads);
            dic.AddIfTrue(EXTERNAL_ACC_COMMS_KEY, ExternalAccComms);
            dic.AddIfTrue(USES_BTLE_ACC_KEY, UsesBTLEAcc);
            dic.AddIfTrue(ACTS_AS_BTLE_ACC_KEY, ActsAsBTLEAcc);
            dic.AddIfTrue(BACKGROUND_FETCH_KEY, BackgroundFetch);
            dic.AddIfTrue(REMOTE_NOTIFICATIONS_KEY, RemoteNotifications);
            return(dic);
        }
Ejemplo n.º 4
0
        public override PListDictionary Serialize()
        {
            var dic = new PListDictionary();

            dic.AddIfTrue(ALLOW_SUBSET_OF_PASS_TYPES_KEY, AllowSubsetOfPassTypes);

            if (PassTypeSubsets.Count > 0)
            {
                dic.Add(PASS_TYPE_SUBSETS_KEY, new PListArray(PassTypeSubsets));
            }

            return(dic);
        }
Ejemplo n.º 5
0
        public override PListDictionary Serialize()
        {
            var dic = new PListDictionary();

            dic.AddIfTrue(KEY_NETWORK_SERVER, KeyNetworkServer);
            dic.AddIfTrue(KEY_NETWORK_CLIENT, KeyNetworkClient);

            dic.AddIfTrue(KEY_CAMERA, KeyCamera);
            dic.AddIfTrue(KEY_AUDIO, KeyAudio);
            dic.AddIfTrue(KEY_USB, KeyUSB);
            dic.AddIfTrue(KEY_PRINTING, KeyPrinting);
            dic.AddIfTrue(KEY_BLUETOOTH, KeyBluetooth);

            dic.AddIfTrue(KEY_CONTACTS, KeyContacts);
            dic.AddIfTrue(KEY_LOCATION, KeyLocation);
            dic.AddIfTrue(KEY_CALENDAR, KeyCalendar);

            if (KeyUserSelectedFiles == READ_WRITE_OPTIONS.ReadOnly)
            {
                dic.Add(KEY_USER_SELECTED_FILES + EXT_READ_ONLY, true);
            }
            else if (KeyUserSelectedFiles == READ_WRITE_OPTIONS.ReadWrite)
            {
                dic.Add(KEY_USER_SELECTED_FILES + EXT_READ_WRITE, true);
            }

            if (KeyDownloadsFolder == READ_WRITE_OPTIONS.ReadOnly)
            {
                dic.Add(KEY_DOWNLOADS_FOLDER + EXT_READ_ONLY, true);
            }
            else if (KeyDownloadsFolder == READ_WRITE_OPTIONS.ReadWrite)
            {
                dic.Add(KEY_DOWNLOADS_FOLDER + EXT_READ_WRITE, true);
            }

            if (KeyPicturesFolder == READ_WRITE_OPTIONS.ReadOnly)
            {
                dic.Add(KEY_PICTURES_FOLDER + EXT_READ_ONLY, true);
            }
            else if (KeyPicturesFolder == READ_WRITE_OPTIONS.ReadWrite)
            {
                dic.Add(KEY_PICTURES_FOLDER + EXT_READ_WRITE, true);
            }

            if (KeyMusicFolder == READ_WRITE_OPTIONS.ReadOnly)
            {
                dic.Add(KEY_MUSIC_FOLDER + EXT_READ_ONLY, true);
            }
            else if (KeyMusicFolder == READ_WRITE_OPTIONS.ReadWrite)
            {
                dic.Add(KEY_MUSIC_FOLDER + EXT_READ_WRITE, true);
            }

            if (KeyMoviesFolder == READ_WRITE_OPTIONS.ReadOnly)
            {
                dic.Add(KEY_MOVIES_FOLDER + EXT_READ_ONLY, true);
            }
            else if (KeyMoviesFolder == READ_WRITE_OPTIONS.ReadWrite)
            {
                dic.Add(KEY_MOVIES_FOLDER + EXT_READ_WRITE, true);
            }

            return(dic);
        }
Ejemplo n.º 6
0
        public override PListDictionary Serialize()
        {
            var dic = new PListDictionary();

            dic.AddIfTrue(AIRPLANE_KEY, Airplane);
            dic.AddIfTrue(BIKE_KEY, Bike);
            dic.AddIfTrue(BUS_KEY, Bus);
            dic.AddIfTrue(CAR_KEY, Car);
            dic.AddIfTrue(FERRY_KEY, Ferry);
            dic.AddIfTrue(PEDESTRIAN_KEY, Pedestrian);
            dic.AddIfTrue(RIDE_SHARING_KEY, RideSharing);
            dic.AddIfTrue(STREETCAR_KEY, Streetcar);
            dic.AddIfTrue(SUBWAY_KEY, Subway);
            dic.AddIfTrue(TAXI_KEY, Taxi);
            dic.AddIfTrue(TRAIN_KEY, Train);
            dic.AddIfTrue(OTHER_KEY, Other);
            return(dic);
        }