diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-02-05 00:29:37 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-02-05 00:29:37 -0500 |
| commit | 7d415fc2fd8c76ba25c2bdb40347d1e0d17ad99f (patch) | |
| tree | 448ecc653015896c5237f54b82072ce77956bf20 /MediaBrowser.Controller/Localization/LocalizedStringData.cs | |
| parent | 1f1852f3cbe2a7899aea0d306a77d2eedb0434fc (diff) | |
some initial work on cloud sync
Diffstat (limited to 'MediaBrowser.Controller/Localization/LocalizedStringData.cs')
| -rw-r--r-- | MediaBrowser.Controller/Localization/LocalizedStringData.cs | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/MediaBrowser.Controller/Localization/LocalizedStringData.cs b/MediaBrowser.Controller/Localization/LocalizedStringData.cs deleted file mode 100644 index 71200b8c8..000000000 --- a/MediaBrowser.Controller/Localization/LocalizedStringData.cs +++ /dev/null @@ -1,51 +0,0 @@ -using System.IO; -using System.Xml.Serialization; - -namespace MediaBrowser.Controller.Localization -{ - /// <summary> - /// Class LocalizedStringData - /// </summary> - public class LocalizedStringData - { - /// <summary> - /// The this version - /// </summary> - [XmlIgnore] - public string ThisVersion = "1.0000"; - /// <summary> - /// The prefix - /// </summary> - [XmlIgnore] - public string Prefix = ""; - /// <summary> - /// The file name - /// </summary> - public string FileName; //this is public so it will serialize and we know where to save ourselves - /// <summary> - /// The version - /// </summary> - public string Version = ""; //this will get saved so we can check it against us for changes - - /// <summary> - /// Saves this instance. - /// </summary> - public void Save() - { - Save(FileName); - } - - /// <summary> - /// Saves the specified file. - /// </summary> - /// <param name="file">The file.</param> - public void Save(string file) - { - var xs = new XmlSerializer(GetType()); - using (var fs = new FileStream(file, FileMode.Create, FileAccess.Write, FileShare.None)) - { - xs.Serialize(fs, this); - } - } - } -} |
