public static string Gender(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Gender"; break; case TLang.Spanish: Value = "Genero"; break; case TLang.None: break; default: break; } return Value; }
/// <summary> /// 根据ID删除数据 /// </summary> /// <param name="t">HuobiProject.Models</param> /// <returns> /// Success:T /// Failed:F /// </returns> bool ICURD <TLang> .Delete(TLang t) { TLang lang = m_lang.Retrieve(t); m_db.TLang.Remove(lang); return(m_db.SaveChanges() > 0); }
/// <summary> /// 根据ID更新数据 /// </summary> /// <param name="t">HuobiProject.Models</param> /// <returns> /// True:成功 /// False:失败 /// </returns> bool ICURD <TLang> .Update(TLang t) { TLang lang = m_lang.Retrieve(t); lang.Name = t.Name; lang.Value = t.Value; lang.Description = t.Description; return(m_db.SaveChanges() > 0); }
public ActionResult <Result> GetArticle([FromRoute] string articleId, [FromRoute] string langValue) { TLang lang = langServer.RetrieveByValue(langValue ?? "zh-CN"); lang = lang ?? langServer.RetrieveByValue("zh-CN"); dynamic article = articleServer.RetrieveByLang(articleId, lang.LangId); return(new Result(200, "成功", article)); }
public ActionResult <Result> GetMainTypes([FromRoute] string langValue) { TLang lang = langServer.RetrieveByValue(langValue); if (lang == null) { throw new ResultException("语言类型错误"); } return(new Result(200, "成功", typeServer.RetrieveArticleMainTypes(lang.LangId))); }
public ActionResult <Result> RetrieveArticlesByLang(string LangValue, int page, int count) { TLang lang = langServer.RetrieveByValue(LangValue); if (lang == null) { throw new ResultException("语言代号错误"); } return(new Result(200, "成功", Pagination <dynamic> .Paging(articleServer.RetrieveArticlesByLang(lang.LangId), page, count))); }
public static string InfoLbl(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = @"Tanji Mimic is a remke of the iconic NovoMimic made by Arachis. It allows users to gather user data and use it to 'mimic' their actions, clothing & speech. Tanjimimic is Open source and the repository is hosted on GitHub and can be publicly found here: It should be familiar if you've utilzed NovoMimic or not in the past. The User Interface is highly self explanatory. Report any bugs to DarkBox: ItzUZ TanjiMimic v0.0.5 [Debug] TanjiMimic by JustDevInc TanjiMimic made possible Arachis"; break; case TLang.Spanish: Value = @"Tanji Mimic es una nueva versión de la extensión anterior 'NovoMimic' que fue hecha por Arachis. Permite al usuario reunir los datos de la victima, de esta forma poder imitar cualquier acción, ropa y el habla. TanjiMimic es de código abierto, el repositorio esta publicado en GitHub, usted puede encontrarlo aquí: Si usted ha utilizado NovoMimic puede sentirse familiarizado con esta nueva versión. Todas las dudas serán aclaradas por si mismas. Usted puede informar de cualquier error en Darkbox: ItzUzi V0.0.3 TanjiMimic [Depurar] TanjiMimic por JustDevInc Tanji por ArachisH"; break; case TLang.None: break; default: break; } return(Value); }
public ActionResult <Result> CategoriesArticles([FromRoute] string langValue, [FromRoute] int articleMainType, [FromRoute] int count) { TLang lang = langServer.RetrieveByValue(langValue); if (lang == null) { throw new ResultException("语言代号错误"); } // var data = new // { // MainType = typeServer.Retrieve(new TType { TypeId = articleMainType }), // ArticleTypes = // }; return(new Result(200, "成功", articleServer.CategoriesArticles(lang.LangId, articleMainType, count))); }
public static string Figure(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Figure"; break; case TLang.Spanish: Value = "Figura"; break; case TLang.None: break; default: break; } return Value; }
public static string AutomaticallyCopyClothesMotto(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Automatically copy Clothes/Motto"; break; case TLang.Spanish: Value = "Autocopiar Ropa/Misión"; break; case TLang.None: break; default: break; } return Value; }
public static string AutomaticallyLoadInformation(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Automatically Load Information"; break; case TLang.Spanish: Value = "Autocargar Informarción"; break; case TLang.None: break; default: break; } return Value; }
public static string ClearButton(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Clear"; break; case TLang.Spanish: Value = "Limpiar"; break; case TLang.None: break; default: break; } return Value; }
public static string Category(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Category"; break; case TLang.Spanish: Value = "Categoría"; break; case TLang.None: break; default: break; } return Value; }
public ActionResult <Result> Recommended([FromRoute] string langValue, [FromRoute] int?count) { TLang lang = langServer.RetrieveByValue(langValue); if (lang == null) { throw new ResultException("语言代号错误"); } dynamic art_data = articleServer.Recommended(lang.LangId); if (count.HasValue) { return(new Result(200, "成功", ((IEnumerable <dynamic>)art_data).Take(count.Value))); } else { return(new Result(200, "成功", art_data)); } }
public ActionResult <Result> Search_old([FromBody] dynamic in_data) { JObject json = JObject.Parse(in_data.ToString()); TLang lang = langServer.RetrieveByValue(json["langValue"]?.ToString()); if (lang == null) { throw new ResultException("语言代号错误"); } string client_id = HttpContext.Request.Headers["client_id"]; //object cache_data = redisServer.HashGet("Client:" + client_id + ":search", json["keyword"].ToString() + lang.LangId); IQueryable <TArticleLang> data_query = articleServer.SearchByKeyword(json["keyword"].ToString(), lang.LangId); Pagination <TArticleLang> pagination = Pagination <TArticleLang> .Paging( data_query, int.Parse(json["page"]?.ToString() ?? "0"), int.Parse(json["count"]?.ToString() ?? "0") ); return(new Result(200, "成功", pagination)); }
public ActionResult <Result> Search_new([FromRoute] string langValue, [FromRoute] string keyword, [FromRoute] int page, [FromRoute] int count) { //JObject json = JObject.Parse(in_data.ToString()); TLang lang = langServer.RetrieveByValue(langValue); if (lang == null) { throw new ResultException("语言代号错误"); } string client_id = HttpContext.Request.Headers["client_id"]; //object cache_data = redisServer.HashGet("Client:" + client_id + ":search", json["keyword"].ToString() + lang.LangId); dynamic data_query = articleServer.SearchByKeyword(keyword, lang.LangId); Pagination <dynamic> pagination = Pagination <dynamic> .Paging( data_query, page, count ); return(new Result(200, "成功", pagination)); }
public static string MimicSign(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Mimic Sign"; break; case TLang.Spanish: Value = "Imitar Signos"; break; case TLang.None: break; default: break; } return(Value); }
public static string Group(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Group"; break; case TLang.Spanish: Value = "Grupo"; break; case TLang.None: break; default: break; } return(Value); }
public static string PlayerInformation(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Player Information"; break; case TLang.Spanish: Value = "Informacion del Jugador"; break; case TLang.None: break; default: break; } return(Value); }
public static string MainTab(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Main"; break; case TLang.Spanish: Value = "Incio"; break; case TLang.None: break; default: break; } return(Value); }
public static string Gender(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Gender"; break; case TLang.Spanish: Value = "Genero"; break; case TLang.None: break; default: break; } return(Value); }
public static string FormTitle(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "TanjiMimic - Main"; break; case TLang.Spanish: Value = "TanjiMimic - Principal"; break; case TLang.None: break; default: break; } return(Value); }
public static string MimicMessage(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Mimic Message"; break; case TLang.Spanish: Value = "Imitar Consola"; break; case TLang.None: break; default: break; } return(Value); }
public static string ToolBoxOptionsGrpBx(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Toolbox/Options"; break; case TLang.Spanish: Value = "Herramientas/Opciones"; break; case TLang.None: break; default: break; } return(Value); }
public static string MimicDance(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Mimic Dance"; break; case TLang.Spanish: Value = "Imitar Baile"; break; case TLang.None: break; default: break; } return(Value); }
public static string Category(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Category"; break; case TLang.Spanish: Value = "Categoría"; break; case TLang.None: break; default: break; } return(Value); }
public static string SettingsTab(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Settings"; break; case TLang.Spanish: Value = "Configuración"; break; case TLang.None: break; default: break; } return(Value); }
public static string ToolBoxTab(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Toolbox"; break; case TLang.Spanish: Value = "Herrmientas"; break; case TLang.None: break; default: break; } return(Value); }
public static string ClearButton(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Clear"; break; case TLang.Spanish: Value = "Limpiar"; break; case TLang.None: break; default: break; } return(Value); }
public static string Figure(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Figure"; break; case TLang.Spanish: Value = "Figura"; break; case TLang.None: break; default: break; } return(Value); }
public static string AutomaticallyCopyClothesMotto(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Automatically copy Clothes/Motto"; break; case TLang.Spanish: Value = "Autocopiar Ropa/Misión"; break; case TLang.None: break; default: break; } return(Value); }
public static string Motto(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Motto"; break; case TLang.Spanish: Value = "Misión"; break; case TLang.None: break; default: break; } return(Value); }
public static string Tile(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Tile"; break; case TLang.Spanish: Value = "Caminar"; break; case TLang.None: break; default: break; } return(Value); }
public static string MimicGesture(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Mimic Gesture"; break; case TLang.Spanish: Value = "ImitarAcciones"; break; case TLang.None: break; default: break; } return(Value); }
public static string Index(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Index"; break; case TLang.Spanish: Value = "Indice"; break; case TLang.None: break; default: break; } return(Value); }
public static string AutomaticallyLoadInformation(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Automatically Load Information"; break; case TLang.Spanish: Value = "Autocargar Informarción"; break; case TLang.None: break; default: break; } return(Value); }
public static string ToolBoxOptionsGrpBx(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Toolbox/Options"; break; case TLang.Spanish: Value = "Herramientas/Opciones"; break; case TLang.None: break; default: break; } return Value; }
public static string TitleFormat(TLang Lang) { string Format = ""; switch (Lang) { case TLang.English: Format = "Select Player - Total: {0}"; break; case TLang.Spanish: Format = "Seleccionar Jugador - Total {0}"; break; case TLang.None: Format = "Select Player - Total: {0}"; break; default: break; } return Format; }
public static string Tile(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Tile"; break; case TLang.Spanish: Value = "Caminar"; break; case TLang.None: break; default: break; } return Value; }
public static string SettingsTab(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Settings"; break; case TLang.Spanish: Value = "Configuración"; break; case TLang.None: break; default: break; } return Value; }
public static string PlayerInformation(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Player Information"; break; case TLang.Spanish: Value = "Informacion del Jugador"; break; case TLang.None: break; default: break; } return Value; }
public static string MainTab(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Main"; break; case TLang.Spanish: Value = "Incio"; break; case TLang.None: break; default: break; } return Value; }
public static string FormTitle(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "TanjiMimic - Main"; break; case TLang.Spanish: Value = "TanjiMimic - Principal"; break; case TLang.None: break; default: break; } return Value; }
public static string MimicStance(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Mimic Stance"; break; case TLang.Spanish: Value = "Imitar Postura"; break; case TLang.None: break; default: break; } return Value; }
public static string MimicSpeech(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Mimic Speech"; break; case TLang.Spanish: Value = "Imitar Habla"; break; case TLang.None: break; default: break; } return Value; }
public static string MimicMessage(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Mimic Message"; break; case TLang.Spanish: Value = "Imitar Consola"; break; case TLang.None: break; default: break; } return Value; }
public static string MimicGesture(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Mimic Gesture"; break; case TLang.Spanish: Value = "ImitarAcciones"; break; case TLang.None: break; default: break; } return Value; }
public static string MimicClothes(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Mimic Clothes"; break; case TLang.Spanish: Value = "Imitar ropa"; break; case TLang.None: break; default: break; } return Value; }
public static string InfoLbl(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = @"Tanji Mimic is a remke of the iconic NovoMimic made by Arachis. It allows users to gather user data and use it to 'mimic' their actions, clothing & speech. Tanjimimic is Open source and the repository is hosted on GitHub and can be publicly found here: It should be familiar if you've utilzed NovoMimic or not in the past. The User Interface is highly self explanatory. Report any bugs to DarkBox: ItzUZ TanjiMimic v0.0.5 [Debug] TanjiMimic by JustDevInc TanjiMimic made possible Arachis"; break; case TLang.Spanish: Value = @"Tanji Mimic es una nueva versión de la extensión anterior 'NovoMimic' que fue hecha por Arachis. Permite al usuario reunir los datos de la victima, de esta forma poder imitar cualquier acción, ropa y el habla. TanjiMimic es de código abierto, el repositorio esta publicado en GitHub, usted puede encontrarlo aquí: Si usted ha utilizado NovoMimic puede sentirse familiarizado con esta nueva versión. Todas las dudas serán aclaradas por si mismas. Usted puede informar de cualquier error en Darkbox: ItzUzi V0.0.3 TanjiMimic [Depurar] TanjiMimic por JustDevInc Tanji por ArachisH"; break; case TLang.None: break; default: break; } return Value; }
public static string ToolBoxTab(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Toolbox"; break; case TLang.Spanish: Value = "Herrmientas"; break; case TLang.None: break; default: break; } return Value; }
public static string Group(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Group"; break; case TLang.Spanish: Value = "Grupo"; break; case TLang.None: break; default: break; } return Value; }
public static string Motto(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Motto"; break; case TLang.Spanish: Value = "Misión"; break; case TLang.None: break; default: break; } return Value; }
public static string Index(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Index"; break; case TLang.Spanish: Value = "Indice"; break; case TLang.None: break; default: break; } return Value; }
public static string InformationGrpBx(TLang Lang) { string Value = ""; switch (Lang) { case TLang.English: Value = "Information"; break; case TLang.Spanish: Value = "Información"; break; case TLang.None: break; default: break; } return Value; }