public CharacterDTO Generate(CharacterDTO dto) { switch (dto.Model.GenerateType) { case CharacterGenerateType.GET_Guild: return(GET_Guild(dto)); case CharacterGenerateType.GifSkill: return(GifSkill(dto)); case CharacterGenerateType.GET_FFAffiliation: return(GET_FFAffiliation(dto)); } return(dto); }
public CharacterDTO test(CharacterDTO dto) { //WORK //dto.Model.IMG2PDFModels = dto.IMG2PDFSort(); //SelectFolder //Regex regex;// = new Regex(@"\d{6,8}_"); //Match match; //if match (_)(.*)[a-zA-Z][-._](\d{1,2}) //do something eg. __Aneman_10 //else //do (_)(.*)[a-zA-Z](_) eg. __Mane_Seku_ //else regex/case select = null them select all image in folder return(dto); }
public CharacterDTO GET_FFAffiliation(CharacterDTO dto) { dto.Model = SessionHelper.SYS_JSON_FILE.Where(m => m.CHARC == dto.Model.CHARAC && m.TYPE == "FFAffiliation") .Select(x => new CharacterModel { CHARAC = x.CHARC, BTN_CHARAC = x.BTNCHARAC, SKILL1 = x.SKILL1, SKILL2 = x.SKILL2, EXSKILL = x.EXSKILL, UNION_BURST = x.UNIONBURST, GIF_SKILL1 = x.GIFSKILL1, GIF_SKILL2 = x.GIFSKILL2, GIF_UNION_BURST = x.GIFUNIONBURST, TYPE = x.TYPE }).FirstOrDefault(); return(dto); }
/// <summary> /// constructor /// public CharacterDA() { DTO = new CharacterDTO(); }