Beispiel #1
0
 public interpolation(JObject obj)
 {
     this.BasicInterpolation                     = JsonClassHelper.ReadStronglyTypedObject <BasicInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "BasicInterpolation"));
     this.HTMLEscaping                           = JsonClassHelper.ReadStronglyTypedObject <HTMLEscaping>(JsonClassHelper.GetJToken <JObject>(obj, "HTMLEscaping"));
     this.TripleMustache                         = JsonClassHelper.ReadStronglyTypedObject <TripleMustache>(JsonClassHelper.GetJToken <JObject>(obj, "TripleMustache"));
     this.Ampersand                              = JsonClassHelper.ReadStronglyTypedObject <Ampersand>(JsonClassHelper.GetJToken <JObject>(obj, "Ampersand"));
     this.BasicIntegerInterpolation              = JsonClassHelper.ReadStronglyTypedObject <BasicIntegerInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "BasicIntegerInterpolation"));
     this.TripleMustacheIntegerInterpolation     = JsonClassHelper.ReadStronglyTypedObject <TripleMustacheIntegerInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "TripleMustacheIntegerInterpolation"));
     this.AmpersandIntegerInterpolation          = JsonClassHelper.ReadStronglyTypedObject <AmpersandIntegerInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "AmpersandIntegerInterpolation"));
     this.BasicDecimalInterpolation              = JsonClassHelper.ReadStronglyTypedObject <BasicDecimalInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "BasicDecimalInterpolation"));
     this.TripleMustacheDecimalInterpolation     = JsonClassHelper.ReadStronglyTypedObject <TripleMustacheDecimalInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "TripleMustacheDecimalInterpolation"));
     this.AmpersandDecimalInterpolation          = JsonClassHelper.ReadStronglyTypedObject <AmpersandDecimalInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "AmpersandDecimalInterpolation"));
     this.DottedNamesBasicInterpolation          = JsonClassHelper.ReadStronglyTypedObject <DottedNamesBasicInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesBasicInterpolation"));
     this.DottedNamesTripleMustacheInterpolation = JsonClassHelper.ReadStronglyTypedObject <DottedNamesTripleMustacheInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesTripleMustacheInterpolation"));
     this.DottedNamesAmpersandInterpolation      = JsonClassHelper.ReadStronglyTypedObject <DottedNamesAmpersandInterpolation>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesAmpersandInterpolation"));
     this.DottedNamesArbitraryDepth              = JsonClassHelper.ReadStronglyTypedObject <DottedNamesArbitraryDepth>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesArbitraryDepth"));
     this.DottedNamesBrokenChains                = JsonClassHelper.ReadStronglyTypedObject <DottedNamesBrokenChains>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesBrokenChains"));
     this.DottedNamesBrokenChainResolution       = JsonClassHelper.ReadStronglyTypedObject <DottedNamesBrokenChainResolution>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesBrokenChainResolution"));
     this.DottedNamesInitialResolution           = JsonClassHelper.ReadStronglyTypedObject <DottedNamesInitialResolution>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesInitialResolution"));
     this.InterpolationSurroundingWhitespace     = JsonClassHelper.ReadStronglyTypedObject <InterpolationSurroundingWhitespace>(JsonClassHelper.GetJToken <JObject>(obj, "InterpolationSurroundingWhitespace"));
     this.TripleMustacheSurroundingWhitespace    = JsonClassHelper.ReadStronglyTypedObject <TripleMustacheSurroundingWhitespace>(JsonClassHelper.GetJToken <JObject>(obj, "TripleMustacheSurroundingWhitespace"));
     this.AmpersandSurroundingWhitespace         = JsonClassHelper.ReadStronglyTypedObject <AmpersandSurroundingWhitespace>(JsonClassHelper.GetJToken <JObject>(obj, "AmpersandSurroundingWhitespace"));
     this.InterpolationStandalone                = JsonClassHelper.ReadStronglyTypedObject <InterpolationStandalone>(JsonClassHelper.GetJToken <JObject>(obj, "InterpolationStandalone"));
     this.TripleMustacheStandalone               = JsonClassHelper.ReadStronglyTypedObject <TripleMustacheStandalone>(JsonClassHelper.GetJToken <JObject>(obj, "TripleMustacheStandalone"));
     this.AmpersandStandalone                    = JsonClassHelper.ReadStronglyTypedObject <AmpersandStandalone>(JsonClassHelper.GetJToken <JObject>(obj, "AmpersandStandalone"));
     this.InterpolationWithPadding               = JsonClassHelper.ReadStronglyTypedObject <InterpolationWithPadding>(JsonClassHelper.GetJToken <JObject>(obj, "InterpolationWithPadding"));
     this.TripleMustacheWithPadding              = JsonClassHelper.ReadStronglyTypedObject <TripleMustacheWithPadding>(JsonClassHelper.GetJToken <JObject>(obj, "TripleMustacheWithPadding"));
     this.AmpersandWithPadding                   = JsonClassHelper.ReadStronglyTypedObject <AmpersandWithPadding>(JsonClassHelper.GetJToken <JObject>(obj, "AmpersandWithPadding"));
 }
Beispiel #2
0
 public sections(JObject obj)
 {
     this.Truthy  = JsonClassHelper.ReadStronglyTypedObject <Truthy>(JsonClassHelper.GetJToken <JObject>(obj, "Truthy"));
     this.Falsey  = JsonClassHelper.ReadStronglyTypedObject <Falsey>(JsonClassHelper.GetJToken <JObject>(obj, "Falsey"));
     this.Context = JsonClassHelper.ReadStronglyTypedObject <Context>(JsonClassHelper.GetJToken <JObject>(obj, "Context"));
     this.DeeplyNestedContexts = JsonClassHelper.ReadStronglyTypedObject <DeeplyNestedContexts>(JsonClassHelper.GetJToken <JObject>(obj, "DeeplyNestedContexts"));
     this.List                          = JsonClassHelper.ReadStronglyTypedObject <List>(JsonClassHelper.GetJToken <JObject>(obj, "List"));
     this.EmptyList                     = JsonClassHelper.ReadStronglyTypedObject <EmptyList>(JsonClassHelper.GetJToken <JObject>(obj, "EmptyList"));
     this.Doubled                       = JsonClassHelper.ReadStronglyTypedObject <Doubled>(JsonClassHelper.GetJToken <JObject>(obj, "Doubled"));
     this.NestedTruthy                  = JsonClassHelper.ReadStronglyTypedObject <NestedTruthy>(JsonClassHelper.GetJToken <JObject>(obj, "NestedTruthy"));
     this.NestedFalsey                  = JsonClassHelper.ReadStronglyTypedObject <NestedFalsey>(JsonClassHelper.GetJToken <JObject>(obj, "NestedFalsey"));
     this.ImplicitIteratorString        = JsonClassHelper.ReadStronglyTypedObject <ImplicitIteratorString>(JsonClassHelper.GetJToken <JObject>(obj, "ImplicitIteratorString"));
     this.ImplicitIteratorInteger       = JsonClassHelper.ReadStronglyTypedObject <ImplicitIteratorInteger>(JsonClassHelper.GetJToken <JObject>(obj, "ImplicitIteratorInteger"));
     this.ImplicitIteratorDecimal       = JsonClassHelper.ReadStronglyTypedObject <ImplicitIteratorDecimal>(JsonClassHelper.GetJToken <JObject>(obj, "ImplicitIteratorDecimal"));
     this.DottedNamesTruthy             = JsonClassHelper.ReadStronglyTypedObject <DottedNamesTruthy>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesTruthy"));
     this.DottedNamesFalsey             = JsonClassHelper.ReadStronglyTypedObject <DottedNamesFalsey>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesFalsey"));
     this.DottedNamesBrokenChains       = JsonClassHelper.ReadStronglyTypedObject <DottedNamesBrokenChains>(JsonClassHelper.GetJToken <JObject>(obj, "DottedNamesBrokenChains"));
     this.SurroundingWhitespace         = JsonClassHelper.ReadStronglyTypedObject <SurroundingWhitespace>(JsonClassHelper.GetJToken <JObject>(obj, "SurroundingWhitespace"));
     this.InternalWhitespace            = JsonClassHelper.ReadStronglyTypedObject <InternalWhitespace>(JsonClassHelper.GetJToken <JObject>(obj, "InternalWhitespace"));
     this.IndentedInlineSections        = JsonClassHelper.ReadStronglyTypedObject <IndentedInlineSections>(JsonClassHelper.GetJToken <JObject>(obj, "IndentedInlineSections"));
     this.StandaloneLines               = JsonClassHelper.ReadStronglyTypedObject <StandaloneLines>(JsonClassHelper.GetJToken <JObject>(obj, "StandaloneLines"));
     this.IndentedStandaloneLines       = JsonClassHelper.ReadStronglyTypedObject <IndentedStandaloneLines>(JsonClassHelper.GetJToken <JObject>(obj, "IndentedStandaloneLines"));
     this.StandaloneLineEndings         = JsonClassHelper.ReadStronglyTypedObject <StandaloneLineEndings>(JsonClassHelper.GetJToken <JObject>(obj, "StandaloneLineEndings"));
     this.StandaloneWithoutPreviousLine = JsonClassHelper.ReadStronglyTypedObject <StandaloneWithoutPreviousLine>(JsonClassHelper.GetJToken <JObject>(obj, "StandaloneWithoutPreviousLine"));
     this.StandaloneWithoutNewline      = JsonClassHelper.ReadStronglyTypedObject <StandaloneWithoutNewline>(JsonClassHelper.GetJToken <JObject>(obj, "StandaloneWithoutNewline"));
     this.Padding                       = JsonClassHelper.ReadStronglyTypedObject <Padding>(JsonClassHelper.GetJToken <JObject>(obj, "Padding"));
 }
Beispiel #3
0
 public partials(JObject obj)
 {
     this.Context               = JsonClassHelper.ReadStronglyTypedObject <Context>(JsonClassHelper.GetJToken <JObject>(obj, "Context"));
     this.Recursion             = JsonClassHelper.ReadStronglyTypedObject <Recursion>(JsonClassHelper.GetJToken <JObject>(obj, "Recursion"));
     this.InlineIndentation     = JsonClassHelper.ReadStronglyTypedObject <InlineIndentation>(JsonClassHelper.GetJToken <JObject>(obj, "InlineIndentation"));
     this.StandaloneIndentation = JsonClassHelper.ReadStronglyTypedObject <StandaloneIndentation>(JsonClassHelper.GetJToken <JObject>(obj, "StandaloneIndentation"));
     this.PaddingWhitespace     = JsonClassHelper.ReadStronglyTypedObject <PaddingWhitespace>(JsonClassHelper.GetJToken <JObject>(obj, "PaddingWhitespace"));
 }
Beispiel #4
0
 public DeeplyNestedContexts(JObject obj)
 {
     this.a = JsonClassHelper.ReadStronglyTypedObject <A>(JsonClassHelper.GetJToken <JObject>(obj, "a"));
     this.b = JsonClassHelper.ReadStronglyTypedObject <B>(JsonClassHelper.GetJToken <JObject>(obj, "b"));
     this.c = JsonClassHelper.ReadStronglyTypedObject <C>(JsonClassHelper.GetJToken <JObject>(obj, "c"));
     this.d = JsonClassHelper.ReadStronglyTypedObject <D>(JsonClassHelper.GetJToken <JObject>(obj, "d"));
     this.e = JsonClassHelper.ReadStronglyTypedObject <E>(JsonClassHelper.GetJToken <JObject>(obj, "e"));
 }
Beispiel #5
0
 public delimiters(JObject obj)
 {
     this.PairBehavior        = JsonClassHelper.ReadStronglyTypedObject <PairBehavior>(JsonClassHelper.GetJToken <JObject>(obj, "PairBehavior"));
     this.SpecialCharacters   = JsonClassHelper.ReadStronglyTypedObject <SpecialCharacters>(JsonClassHelper.GetJToken <JObject>(obj, "SpecialCharacters"));
     this.Sections            = JsonClassHelper.ReadStronglyTypedObject <Sections>(JsonClassHelper.GetJToken <JObject>(obj, "Sections"));
     this.InvertedSections    = JsonClassHelper.ReadStronglyTypedObject <InvertedSections>(JsonClassHelper.GetJToken <JObject>(obj, "InvertedSections"));
     this.PartialInheritence  = JsonClassHelper.ReadStronglyTypedObject <PartialInheritence>(JsonClassHelper.GetJToken <JObject>(obj, "PartialInheritence"));
     this.PostPartialBehavior = JsonClassHelper.ReadStronglyTypedObject <PostPartialBehavior>(JsonClassHelper.GetJToken <JObject>(obj, "PostPartialBehavior"));
 }
Beispiel #6
0
 public IndentedInlineSections(JObject obj)
 {
     this.boolean = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken <JValue>(obj, "boolean"));
 }
Beispiel #7
0
 public Context2(JObject obj)
 {
     this.name = JsonClassHelper.ReadString(JsonClassHelper.GetJToken <JValue>(obj, "name"));
 }
Beispiel #8
0
 public DottedNamesBrokenChains(JObject obj)
 {
     this.a = JsonClassHelper.ReadStronglyTypedObject <A4>(JsonClassHelper.GetJToken <JObject>(obj, "a"));
 }
Beispiel #9
0
 public InternalWhitespace(JObject obj)
 {
     this.boolean = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken <JValue>(obj, "boolean"));
 }
Beispiel #10
0
 public List(JObject obj)
 {
     this.list = (List2[])JsonClassHelper.ReadArray <List2>(JsonClassHelper.GetJToken <JArray>(obj, "list"), JsonClassHelper.ReadStronglyTypedObject <List2>, typeof(List2[]));
 }
Beispiel #11
0
        public void backup(Set set, string toolsFolder, string toolsTempFolder)
        {
            BackupContents bcs = new BackupContents();

            bcs = JsonClassHelper.Json2Class <BackupContents>(set.Backup.Content);

            if (bcs == null || bcs.content == null)
            {
                return;
            }
            else
            {
                exp_tem_path = toolsFolder;
                exp_path     = toolsTempFolder;
                dayString    = DateTime.Now.Year + "-" + (DateTime.Now.Month < 10 ? "0" + DateTime.Now.Month : DateTime.Now.Month + "") + "-" + (DateTime.Now.Day < 10 ? "0" + DateTime.Now.Day : DateTime.Now.Day + ""); //DateTime.Now.ToShortDateString();
                string timeString = DateTime.Now.Hour.ToString() + "-" + DateTime.Now.Minute.ToString() + "--" + DateTime.Now.Second.ToString();

                backup_path = set.Backup.Path + "\\backup-" + dayString + "\\" + timeString;
                if (!System.IO.Directory.Exists(backup_path))
                {
                    System.IO.Directory.CreateDirectory(backup_path);
                }


                setConfig setconfig = new setConfig();
                string    ansStr    = "开始备份数据\r\n";


                if (bcs.content.Find((BackupContent bc) => bc.Name == "sde") != null && bcs.content.Find((BackupContent bc) => bc.Name == "sde").Type.Count > 0)
                {
                    //备份 sde库
                    //初始化 esri授权
                    setArcgis.init();
                    setArcgis.grant();
                }


                foreach (BackupContent bc in bcs.content)
                {
                    if (bc.Type == null)
                    {
                        continue;
                    }


                    foreach (BackupContentType bctype in bc.Type)
                    {
                        if (bc.Name == "dmp")
                        {
                            string name   = bctype.Name;
                            DbUser dbuser = set.Db.DbUserList.Find((DbUser du) => du.Name == name);

                            if (bctype.Set != null && bctype.Set.Count > 0)
                            {
                                string    remoteInfo  = bctype.Set.Find((BackupContentSet bcsset) => bcsset.SetKey == "remoteInfo").SetValue;
                                string [] remoteInfos = remoteInfo.Split(',');

                                setBAT.OracleExpdp(exp_tem_path, exp_path, dbuser.User, dbuser.Password, set.Db.Datasource, dbuser.Label, backup_path, remoteInfos[0], remoteInfos[1], remoteInfos[2], bctype.getValueList("excludeTable"), true);
                                setBAT.FilePackage(exp_tem_path, exp_path, "正在压缩" + dbuser.Label + "dmpdp文件", backup_path + "\\EXP-" + dbuser.User.ToUpper() + ".DMPDP", backup_path + "\\exp-" + dbuser.User, false, null, null, true);
                                File.Delete(backup_path + "\\exp-" + dbuser.User + ".dmpdp");
                                ansStr += dbuser.Label + "数据expdp导出完成\r\n";
                            }
                            else
                            {
                                setBAT.OracleExp(exp_tem_path, exp_path, dbuser.User, dbuser.Password, set.Db.Datasource, dbuser.Label, backup_path, true);
                                setBAT.FilePackage(exp_tem_path, exp_path, "正在压缩" + dbuser.Label + "dmp文件", backup_path + "\\exp-" + dbuser.User + ".dmp", backup_path + "\\exp-" + dbuser.User, false, null, null, true);
                                File.Delete(backup_path + "\\exp-" + dbuser.User + ".dmp");
                                ansStr += dbuser.Label + "数据导出完成\r\n";
                            }
                        }
                        else if (bc.Name == "app")
                        {
                            string type = bctype.Type;
                            string name = bctype.Name;

                            string labelStr    = "";
                            string appfolder   = "";
                            string appfilename = "";

                            dynamic typeObject = System.Reflection.Assembly.Load("QuickConfig.Model").CreateInstance(type, false);;

                            if (typeObject is ServiceApp)
                            {
                                ServiceApp dbuser = set.Apps.ServiceAppList.Find((ServiceApp du) => du.Name == name);
                                labelStr    = dbuser.Label;
                                appfolder   = dbuser.Path;
                                appfilename = dbuser.Label;
                            }
                            else if (typeObject is WebApp)
                            {
                                WebApp dbuser = set.Apps.WebAppList.Find((WebApp du) => du.Name == name);
                                labelStr    = dbuser.Label;
                                appfolder   = dbuser.Path;
                                appfilename = dbuser.Label;
                            }
                            else if (typeObject is App)
                            {
                                App dbuser = set.Apps.AppList.Find((App du) => du.Name == name);
                                labelStr    = dbuser.Label;
                                appfolder   = dbuser.Path;
                                appfilename = dbuser.Label;
                            }
                            else if (typeObject is Ftp)
                            {
                                Ftp dbuser = set.Apps.FtpList.Find((Ftp du) => du.Name == name);
                                labelStr    = dbuser.Label;
                                appfolder   = dbuser.Path;
                                appfilename = dbuser.Label;
                            }
                            else if (typeObject is Gxml)
                            {
                                Gxml dbuser = set.Apps.GxmlList.Find((Gxml du) => du.Name == name);
                                labelStr    = dbuser.Label;
                                appfolder   = dbuser.Path;
                                appfilename = dbuser.Label;
                            }

                            setBAT.FilePackage(exp_tem_path, exp_path, labelStr, appfolder, backup_path + "\\" + appfilename, true, bctype.getValueList("excludeFolder"), bctype.getValueList("excludeFile"), true);

                            ansStr += appfilename + "程序备份完成\r\n";
                        }
                        else if (bc.Name == "sde")
                        {
                            string         name   = bctype.Name;
                            DbSdeUser      dbuser = set.Db.DbSdeUserList.Find((DbSdeUser du) => du.Name == name);
                            EngineDatabase engine = new EngineDatabase();
                            engine.createGDBFile(backup_path, dbuser.Tablespace + ".gdb");
                            string ans1 = engine.exportSDE2GDBWithWorkspace(set.Db.Ip, "sde:oracle10g:" + set.Db.Datasource, dbuser.User, dbuser.Password, backup_path + "\\" + dbuser.Tablespace + ".gdb");
                            // setBAT.FilePackage(exp_tem_path, exp_path, "正在压缩" + dbuser.Label + "gdb文件", backup_path + "\\" + dbuser.Tablespace + ".gdb", backup_path + "\\" + dbuser.User,true,null,null, true);
                            ansStr += dbuser.Label + "导出结果如下:\r\n" + ans1 + "\r\n";

                            ansStr += dbuser.Label + "导出导出完成\r\n";
                        }
                    }
                }
                ansStr += "备份结束\r\n";
                StreamWriter sw = null;
                if (!File.Exists(backup_path + "\\" + dayString + ".log"))
                {
                    //不存在就新建一个文本文件,并写入一些内容
                    sw = File.CreateText(backup_path + "\\" + dayString + ".log");
                }
                else
                {
                    sw = new StreamWriter(backup_path + "\\" + dayString + ".log");
                }

                sw.Write(ansStr);
                sw.Close();
            }
        }
Beispiel #12
0
 public Context(JObject obj)
 {
     this.context = JsonClassHelper.ReadStronglyTypedObject <Context2>(JsonClassHelper.GetJToken <JObject>(obj, "context"));
 }
Beispiel #13
0
 public Padding(JObject obj)
 {
     this.boolean = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken <JValue>(obj, "boolean"));
 }
Beispiel #14
0
 public ImplicitIteratorString(JObject obj)
 {
     this.list = (string[])JsonClassHelper.ReadArray <string>(JsonClassHelper.GetJToken <JArray>(obj, "list"), JsonClassHelper.ReadString, typeof(string[]));
 }
Beispiel #15
0
 public ImplicitIteratorInteger(JObject obj)
 {
     this.list = (int[])JsonClassHelper.ReadArray <int>(JsonClassHelper.GetJToken <JArray>(obj, "list"), JsonClassHelper.ReadInteger, typeof(int[]));
 }
Beispiel #16
0
 public NestedFalsey(JObject obj)
 {
     this.bool1 = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken <JValue>(obj, "bool1"));
 }
Beispiel #17
0
 public Doubled(JObject obj)
 {
     this.two   = JsonClassHelper.ReadString(JsonClassHelper.GetJToken <JValue>(obj, "two"));
     this.bool1 = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken <JValue>(obj, "bool1"));
 }
Beispiel #18
0
 public EmptyList(JObject obj)
 {
     this.list = (object[])JsonClassHelper.ReadArray <object>(JsonClassHelper.GetJToken <JArray>(obj, "list"), JsonClassHelper.ReadObject, typeof(object[]));
 }
Beispiel #19
0
 public StandaloneLineEndings(JObject obj)
 {
     this.boolean = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken <JValue>(obj, "boolean"));
 }
Beispiel #20
0
 public B(JObject obj)
 {
     this.two = JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken <JValue>(obj, "two"));
 }
Beispiel #21
0
 public StandaloneWithoutNewline(JObject obj)
 {
     this.boolean = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken <JValue>(obj, "boolean"));
 }
Beispiel #22
0
 public D(JObject obj)
 {
     this.four = JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken <JValue>(obj, "four"));
 }
Beispiel #23
0
 public ImplicitIteratorDecimal(JObject obj)
 {
     this.list = (double[])JsonClassHelper.ReadArray <double>(JsonClassHelper.GetJToken <JArray>(obj, "list"), JsonClassHelper.ReadFloat, typeof(double[]));
 }
Beispiel #24
0
 public List2(JObject obj)
 {
     this.item = JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken <JValue>(obj, "item"));
 }
Beispiel #25
0
 public A(JObject obj)
 {
     this.one = JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken <JValue>(obj, "one"));
 }
Beispiel #26
0
 public B3(JObject obj)
 {
     this.c = JsonClassHelper.ReadBoolean(JsonClassHelper.GetJToken <JValue>(obj, "c"));
 }
Beispiel #27
0
 public C(JObject obj)
 {
     this.three = JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken <JValue>(obj, "three"));
 }
Beispiel #28
0
 public A3(JObject obj)
 {
     this.b = JsonClassHelper.ReadStronglyTypedObject <B3>(JsonClassHelper.GetJToken <JObject>(obj, "b"));
 }
Beispiel #29
0
 public E(JObject obj)
 {
     this.five = JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken <JValue>(obj, "five"));
 }
Beispiel #30
0
 public DottedNamesFalsey(JObject obj)
 {
     this.a = JsonClassHelper.ReadStronglyTypedObject <A3>(JsonClassHelper.GetJToken <JObject>(obj, "a"));
 }