public Pointer GetPointer(int chatId, string languageCode) { Pointer pointer = dBHandler.PointerQueue.Find(x => x.ChatId == chatId); if (pointer == null) { pointer = dBHandler.GetPointer(chatId); if (pointer == null) { pointer = new Pointer(chatId, languageCode); } } if (pointer.Lang == Strings.Langs.none) { pointer.Lang = Strings.GetLangFromIEFT(languageCode); } dBHandler.AddToQueue(pointer); return(pointer); }
public Pointer(int chatId, string ieftLang) : this(chatId, EPolls.vote, ENeedle.pollText, EAnony.personal, null, null, 0, Strings.GetLangFromIEFT(ieftLang), new List <DateTime>()) { }