Example #1
0
        public void CheckStoreInVault(ModelStateDictionary modelState, int peopleid)
        {
            if (!IsLoggedIn.GetValueOrDefault() || !SavePayInfo)
            {
                return;
            }

            var gateway = CurrentDatabase.Gateway(testing, null, ProcessType);

            if (!modelState.IsValid)
            {
                return;
            }

            // we need to perform a $1 auth if this is a brand new credit card that we are going to store it in the vault.
            // otherwise we skip doing an auth just call store in vault just like normal.
            VerifyCardWithAuth(modelState, gateway, peopleid);
            if (!modelState.IsValid)
            {
                return;
            }

            InitializePaymentInfo(peopleid);

            gateway.StoreInVault(peopleid, Type, CreditCard,
                                 DbUtil.NormalizeExpires(Expires).ToString2("MMyy"), CVV, Routing, Account,
                                 IsGiving.GetValueOrDefault());
        }
        public AllAgreements(ref Dictionary <int, AddAgreement> p_all_add_agreements, CreateFormalMessageRequest p_send_formal_message_to_user, DB_IsThereUser p_is_there_user
                             , DB_AddToFriends p_add_to_friends, DB_AreFriends p_are_friends, DB_CreateAddAgreement p_create_add_agreement, DB_RemoveAgreement p_remove_agreement
                             , IsLoggedIn p_is_logged_in, StartClientFriendListChangedInformDialog p_start_client_friend_list_changed_inform_dialog, ReloadFriendList p_reload_friend_list
                             , GetOnlineUserFriendList p_get_online_user_friend_list, GetUserStatus p_get_user_status, AddAgreementDone p_add_agreement_done, GetAllAdAgreements p_get_all_agreements
                             , StartClientInvitedAgreementInform p_start_client_invited_agreement_inform)
        {
            send_formal_message_to_user = p_send_formal_message_to_user;
            is_there_user        = p_is_there_user;
            add_to_friends       = p_add_to_friends;
            are_friends          = p_are_friends;
            create_add_agreement = p_create_add_agreement;
            remove_agreement     = p_remove_agreement;
            is_logged_in         = p_is_logged_in;
            start_client_friend_list_changed_inform_dialog = p_start_client_friend_list_changed_inform_dialog;
            reload_friend_list                    = p_reload_friend_list;
            get_online_user_friend_list           = p_get_online_user_friend_list;
            get_user_status                       = p_get_user_status;
            add_agreement_done                    = p_add_agreement_done;
            get_all_agreements                    = p_get_all_agreements;
            start_client_invited_agreement_inform = p_start_client_invited_agreement_inform;

            ma_add_agreement_manager = new Ma_AddAgreementManager(ref p_all_add_agreements, new CreateFormalMessageRequest(AllAg_SendFormlMessageToUser)
                                                                  , new DB_IsThereUser(AllAg_IsThereUser), new DB_AddToFriends(AllAg_AddToFriends), new DB_AreFriends(AllAg_AreFriends)
                                                                  , new DB_CreateAddAgreement(AllAg_CreateAddAgreement), new DB_RemoveAgreement(AllAg_RemoveAgreement), new IsLoggedIn(AllAg_IsLoggedIn)
                                                                  , new StartClientFriendListChangedInformDialog(AllAg_StartClientFriendListChangedInformDialog), new ReloadFriendList(AllAg_ReloadFriendList)
                                                                  , new GetOnlineUserFriendList(AllAg_GetOnlineUserFriendList), new GetUserStatus(AllAg_GetUserStatus), add_agreement_done
                                                                  , new GetAllAdAgreements(AllAg_GetAllAdAgreements), new StartClientInvitedAgreementInform(AllAg_StartClientInvitedAgreementInform));
        }
        public Ma_AddAgreementManager(ref Dictionary <int, AddAgreement> p_all_agreements, CreateFormalMessageRequest p_send_formal_messages_to_user
                                      , DB_IsThereUser p_is_there_user, DB_AddToFriends p_add_to_friends, DB_AreFriends p_are_friends, DB_CreateAddAgreement p_create_add_agreement
                                      , DB_RemoveAgreement p_remove_agreement, IsLoggedIn p_is_logged_in, StartClientFriendListChangedInformDialog p_start_client_friend_list_changed_inform_dialog
                                      , ReloadFriendList p_reload_friend_list, GetOnlineUserFriendList p_get_online_user_friend_list, GetUserStatus p_get_user_status, AddAgreementDone p_add_agreement_done
                                      , GetAllAdAgreements p_get_all_agreements, StartClientInvitedAgreementInform p_start_client_invited_agreement_inform)
        {
            base.BaseConstruct(TypeOfAgreement.Add, 1, p_send_formal_messages_to_user, p_is_there_user, p_start_client_invited_agreement_inform, p_is_logged_in);

            add_to_friends       = p_add_to_friends;
            are_friends          = p_are_friends;
            create_add_agreement = p_create_add_agreement;
            remove_agreement     = p_remove_agreement;
            start_client_friend_list_changed_inform_dialog = p_start_client_friend_list_changed_inform_dialog;
            reload_friend_list          = p_reload_friend_list;
            get_online_user_friend_list = p_get_online_user_friend_list;
            get_user_status             = p_get_user_status;
            add_agreement_done          = p_add_agreement_done;
            get_all_agreements          = p_get_all_agreements;

            all_agreements = p_all_agreements;

            List <Agreement> all_db_agreements = new List <Agreement>();
            int h = 0;

            while (h < 4)
            {
                try
                {
                    all_db_agreements = get_all_agreements();
                    h = 0;
                    break;
                }
                catch
                {
                    h++;
                    continue;
                }
            }
            if (h > 3)
            {
                Console.WriteLine("could not get all agreements from DB");
                try
                {
                    Environment.Exit(4);
                }
                catch
                {
                }
                Thread.CurrentThread.Abort();
            }
            foreach (Agreement t_agreement in all_db_agreements)
            {
                AddAgreement temp_add_agreement = new AddAgreement(t_agreement.Get_agreement_id, t_agreement.Get_inviting_user_name, t_agreement.Get_invited_user_name, new RemoveAgr(AgreementRemoveItselfRequest)
                                                                   , new DB_AddToFriends(add_to_friends), new DB_AreFriends(are_friends), new DB_CreateAddAgreement(create_add_agreement), new DB_RemoveAgreement(remove_agreement)
                                                                   , new CreateFormalMessageRequest(Ma_SendFormalMessageToUser), new DB_IsThereUser(is_there_user), new GetUserStatus(Ma_GetUserStatus), new IsLoggedIn(Ma_IsLoggedIn), new StartClientFriendListChangedInformDialog(Ma_StartClientFriendListChangedInformDialog)
                                                                   , new ReloadFriendList(Ma_ReloadFriendList), new GetOnlineUserFriendList(Ma_GetOnlineUserFriendList), new AddAgreementDone(add_agreement_done));
                all_agreements.Add(t_agreement.Get_agreement_id, temp_add_agreement);
            }
        }
 public void BaseConstruct(TypeOfChat p_chat_type, ChatSend p_send_chat_message, StartEjectedChatUserInform p_start_ejected_user_chat_inform_dialog
                           , IsLoggedIn p_is_logged_in)
 {
     chat_type = p_chat_type;
     chat_send = p_send_chat_message;
     start_ejected_user_chat_inform_dialog = p_start_ejected_user_chat_inform_dialog;
     is_logged_in = p_is_logged_in;
 }
 public NexusDownloader()
 {
     TriggerLogin = ReactiveCommand.CreateFromTask(
         execute: () => Utils.CatchAndLog(NexusApiClient.RequestAndCacheAPIKey),
         canExecute: IsLoggedIn.Select(b => !b).ObserveOnGuiThread());
     ClearLogin = ReactiveCommand.CreateFromTask(
         execute: () => Utils.CatchAndLog(async() => await Utils.DeleteEncryptedJson("nexusapikey")),
         canExecute: IsLoggedIn.ObserveOnGuiThread());
 }
 protected void BaseConstruct(TypeOfChat p_chat_type, int p_chat_id, ChatSend p_chat_send, RemoveChat p_remove_chat_from_manager
                              , StartEjectedChatUserInform p_start_ejected_user_chat_inform_dialog, IsLoggedIn p_is_logged_in)
 {
     chat_type = p_chat_type;
     chat_id   = p_chat_id;
     chat_send = p_chat_send;
     remove_chat_from_manager = p_remove_chat_from_manager;
     start_ejected_user_chat_inform_dialog = p_start_ejected_user_chat_inform_dialog;
     is_logged_in = p_is_logged_in;
 }
 public void BaseConstruct(TypeOfAgreement p_agreement_type, int p_max_invited_persons, CreateFormalMessageRequest p_send_formal_message_to_user
                           , DB_IsThereUser p_is_there_user, StartClientInvitedAgreementInform p_start_client_invited_agreement_inform, IsLoggedIn p_is_logged_in)
 {
     agreement_type = p_agreement_type;
     send_formal_message_to_user           = p_send_formal_message_to_user;
     start_client_invited_agreement_inform = p_start_client_invited_agreement_inform;
     is_logged_in        = p_is_logged_in;
     is_there_user       = p_is_there_user;
     max_invited_persons = p_max_invited_persons;
 }
        public SendData(SendToDistributerConstruct p_send_to_distributer_construct, IsLoggedIn p_is_logged_in, GetOnlineUserThreadID p_get_online_user_thread_id
                        , GetAThreadUserName p_get_thread_user_name, IsThereUnauthWorkerThread p_is_there_unauth_worker_thread, object p_distributer_pulse_object)
        {
            send_to_distributer_construct = p_send_to_distributer_construct;
            distributer_pulse_object      = p_distributer_pulse_object;

            is_logged_in = p_is_logged_in;
            get_online_user_thread_id     = p_get_online_user_thread_id;
            get_thread_user_name          = p_get_thread_user_name;
            is_there_unauth_worker_thread = p_is_there_unauth_worker_thread;
        }
 public PrivateChat(string p_first_person_user_name, string p_second_person_user_name, int p_chat_id, ChatSend p_send_chat_message_to_user, StartEjectedChatUserInform p_start_ejected_user_chat_inform_dialog
                    , RemoveChat p_remove_chat_from_manager, IsLoggedIn p_is_logged_in, StartClientSomeoneJoinedChatInform p_start_client_someone_joined_chat_inform)
 {
     base.BaseConstruct(TypeOfChat.Private, p_chat_id, p_send_chat_message_to_user, p_remove_chat_from_manager, p_start_ejected_user_chat_inform_dialog, p_is_logged_in);
     all_users       = new List <ChatUser>();
     max_users_count = 2;
     min_user_count  = 1;
     status          = PrivateChatStatus.UnAccepted;
     start_client_someone_joined_chat_inform = p_start_client_someone_joined_chat_inform;
     invited_user_name = p_second_person_user_name;
     all_users.Add(new ChatUser(p_first_person_user_name, new UserSendChatMessage(CH_ChatSend)));
 }
Example #10
0
    // Constructor
    /// <summary>
    /// Initializes a new instance of the <see cref="DatabaseUser"/> class.
    /// </summary>
    public User()
    {
        PropertyInfo[] variableNames = typeof(User).GetProperties();
        foreach (PropertyInfo p in variableNames)
        {
            properties.Add(p.Name.ToLower(), p);
        }

        Position     = new Position();
        FriendsIDs   = new StringList();
        IsLoggedIn   = new IsLoggedIn();
        CurrentRoute = "";
        CurrentSkin  = "Default";
    }
        public Ma_PublicChatManager(Dictionary <int, PublicChat> p_all_chats, ChatSend p_chat_send, StartEjectedChatUserInform p_start_ejected_user_chat_inform_dialog
                                    , IsLoggedIn p_is_logged_in, StartClientSomeoneJoinedChatInform p_start_client_someone_joined_chat_inform
                                    , StartClientSomeoneLeftChatInform p_start_client_someone_left_chat_inform)
        {
            base.BaseConstruct(TypeOfChat.Public, p_chat_send, p_start_ejected_user_chat_inform_dialog, p_is_logged_in);

            all_chats = p_all_chats;
            start_client_someone_joined_chat_inform = p_start_client_someone_joined_chat_inform;
            start_client_someone_left_chat_inform   = p_start_client_someone_left_chat_inform;

            Create(HelperFunctions.GetGUID(), 20);
            Create(HelperFunctions.GetGUID(), 50);
            Create(HelperFunctions.GetGUID(), 100);
        }
Example #12
0
        public NexusDownloader()
        {
            if (CLIArguments.ApiKey != null)
            {
                CLIArguments.ApiKey.ToEcryptedJson("nexusapikey");
            }

            TriggerLogin = ReactiveCommand.CreateFromTask(
                execute: () => Utils.CatchAndLog(NexusApiClient.RequestAndCacheAPIKey),
                canExecute: IsLoggedIn.Select(b => !b).ObserveOnGuiThread());
            ClearLogin = ReactiveCommand.Create(
                execute: () => Utils.CatchAndLog(() => Utils.DeleteEncryptedJson("nexusapikey")),
                canExecute: IsLoggedIn.ObserveOnGuiThread());
        }
Example #13
0
        public AbstractIPS4OAuthDownloader(string clientID, Uri authEndpoint, Uri tokenEndpoint, IEnumerable <string> scopes, string encryptedKeyName)
        {
            ClientID = clientID;
            AuthorizationEndpoint = authEndpoint;
            TokenEndpoint         = tokenEndpoint;
            EncryptedKeyName      = encryptedKeyName;
            Scopes = scopes;

            TriggerLogin = ReactiveCommand.CreateFromTask(
                execute: () => Utils.CatchAndLog(async() => await Utils.Log(new RequestOAuthLogin(ClientID, authEndpoint, tokenEndpoint, SiteName, scopes, EncryptedKeyName)).Task),
                canExecute: IsLoggedIn.Select(b => !b).ObserveOnGuiThread());
            ClearLogin = ReactiveCommand.CreateFromTask(
                execute: () => Utils.CatchAndLog(async() => await Utils.DeleteEncryptedJson(EncryptedKeyName)),
                canExecute: IsLoggedIn.ObserveOnGuiThread());
        }
        protected void BaseConstruct(TypeOfAgreement p_agreement_type, int p_agreement_id, string p_starter_user_name
                                     , int p_max_invited_persons, RemoveAgr p_remove_agreement_from_manager, CreateFormalMessageRequest p_send_formal_message_to_user
                                     , DB_IsThereUser p_is_there_user, Dictionary <string, bool> p_all_users_invited, IsLoggedIn p_is_logged_in)
        {
            all_users_invited = p_all_users_invited;

            agreement_id        = p_agreement_id;
            max_invited_persons = p_max_invited_persons;
            agreement_type      = p_agreement_type;
            starter_user_name   = p_starter_user_name;

            remove_agreement_from_manager = p_remove_agreement_from_manager;
            send_formal_message_to_user   = p_send_formal_message_to_user;
            is_there_user = p_is_there_user;
            is_logged_in  = p_is_logged_in;
        }
Example #15
0
        /// <summary>
        /// Sets up all the login facilites needed for a INeedsLogin downloader based on having the user log
        /// in via a browser
        /// </summary>
        /// <param name="loginUri">The URI to preset for logging in</param>
        /// <param name="encryptedKeyName">The name of the encrypted JSON key in which to store cookies</param>
        /// <param name="cookieDomain">The cookie domain to scan</param>
        /// <param name="cookieName">The cookie name to wait for</param>
        public AbstractNeedsLoginDownloader(Uri loginUri,
                                            string encryptedKeyName,
                                            string cookieDomain,
                                            string cookieName)
        {
            _loginUri         = loginUri;
            _encryptedKeyName = encryptedKeyName;
            _cookieDomain     = cookieDomain;
            _cookieName       = cookieName;

            TriggerLogin = ReactiveCommand.CreateFromTask(
                execute: () => Utils.CatchAndLog(async() => await Utils.Log(new RequestSiteLogin(this)).Task),
                canExecute: IsLoggedIn.Select(b => !b).ObserveOnGuiThread());
            ClearLogin = ReactiveCommand.Create(
                execute: () => Utils.CatchAndLog(() => Utils.DeleteEncryptedJson(_encryptedKeyName)),
                canExecute: IsLoggedIn.ObserveOnGuiThread());
        }
Example #16
0
        public bool LoginValidate(string userName1, string pwd1)
        {
            var data = _SQLiteConnection.Table <User>();
            var d1   = data.Where(x => x.Username == userName1 && x.Password == pwd1).FirstOrDefault();

            if (d1 != null)
            {
                RestService rest = new RestService();
                rest.Login(d1);
                IsLoggedIn loggedIn = new IsLoggedIn();
                loggedIn.setID(d1.Id);
                return(true);
            }
            else
            {
                return(false);
            }
        }
        public void OnNavigatedTo(INavigationParameters parameters)
        {
            disposables?.Dispose();
            disposables = new CompositeDisposable();

            IsLoggedIn.Where(x => x)
            .Take(1)
            .Delay(TimeSpan.FromSeconds(2.5))     /* ここでログイン確認後の遷移前タメ時間を調整 */
            .Subscribe(_ =>
            {
                GoNextIntroduction.Execute(null);
            });

            try
            {
                _ = NiconicoSession.SignInWithPrimaryAccount();
            }
            catch { }
        }
        public AllChats(Dictionary <int, PrivateChat> p_all_private_chats, Dictionary <int, PublicChat> p_all_public_chats,
                        ChatSend p_send_chat_message, StartEjectedChatUserInform p_start_ejected_user_chat_inform_dialog
                        , IsLoggedIn p_is_logged_in, StartClientSomeoneJoinedChatInform p_start_client_someone_joined_chat_inform, StartClientSomeoneLeftChatInform p_start_client_someone_left_chat_inform)
        {
            send_chat_message = p_send_chat_message;
            start_ejected_user_chat_inform_dialog   = p_start_ejected_user_chat_inform_dialog;
            start_client_someone_joined_chat_inform = p_start_client_someone_joined_chat_inform;
            start_client_someone_left_chat_inform   = p_start_client_someone_left_chat_inform;
            is_logged_in = p_is_logged_in;

            private_chat_manager = new Ma_PrivateChatManager(p_all_private_chats, new ChatSend(AllMa_ChatSendChatMessage)
                                                             , new StartEjectedChatUserInform(AllMa_StartEjectedChatUserInform), new IsLoggedIn(AllMa_IsloggedIn)
                                                             , new StartClientSomeoneJoinedChatInform(AllMa_StartClientSomeoneJoinedChatInform));

            public_chat_manager = new Ma_PublicChatManager(p_all_public_chats, new ChatSend(AllMa_ChatSendChatMessage)
                                                           , new StartEjectedChatUserInform(AllMa_StartEjectedChatUserInform), new IsLoggedIn(AllMa_IsloggedIn)
                                                           , new StartClientSomeoneJoinedChatInform(AllMa_StartClientSomeoneJoinedChatInform)
                                                           , new StartClientSomeoneLeftChatInform(AllMa_StartClientSomeoneLeftChatInform));
        }
Example #19
0
        public override void OnNavigatedTo(NavigatedToEventArgs e, Dictionary <string, object> viewModelState)
        {
            disposables?.Dispose();
            disposables = new CompositeDisposable();

            IsLoggedIn.Where(x => x)
            .Take(1)
            .Delay(TimeSpan.FromSeconds(2.5))     /* ここでログイン確認後の遷移前タメ時間を調整 */
            .Subscribe(_ =>
            {
                GoNextIntroduction.Execute(null);
            });

            try
            {
                _ = NiconicoSession.SignInWithPrimaryAccount();
            }
            catch { }

            base.OnNavigatedTo(e, viewModelState);
        }
        public AddAgreement(int p_agreement_id, string p_starter_user_name, string p_invited_person_user_name, RemoveAgr p_remove_agreement_from_manager
                            , DB_AddToFriends p_add_to_friends, DB_AreFriends p_are_friends, DB_CreateAddAgreement p_create_add_agreement
                            , DB_RemoveAgreement p_remove_agreement, CreateFormalMessageRequest p_send_formal_message_to_user, DB_IsThereUser p_is_there_user
                            , GetUserStatus p_get_user_status, IsLoggedIn p_is_logged_in, StartClientFriendListChangedInformDialog p_start_client_friend_list_changed_inform_dialog
                            , ReloadFriendList p_reload_friend_list, GetOnlineUserFriendList p_get_online_user_friend_list, AddAgreementDone p_add_agreement_done)
        {
            Dictionary <string, bool> t_all_users_invited = new Dictionary <string, bool>();

            t_all_users_invited.Add(p_invited_person_user_name, false);

            base.BaseConstruct(TypeOfAgreement.Add, p_agreement_id, p_starter_user_name, 1, p_remove_agreement_from_manager, p_send_formal_message_to_user, p_is_there_user
                               , t_all_users_invited, p_is_logged_in);

            add_to_friends       = p_add_to_friends;
            are_friends          = p_are_friends;
            create_add_agreement = p_create_add_agreement;
            remove_agreement     = p_remove_agreement;
            get_user_status      = p_get_user_status;
            start_client_friend_list_changed_inform_dialog = p_start_client_friend_list_changed_inform_dialog;
            reload_friend_list          = p_reload_friend_list;
            get_online_user_friend_list = p_get_online_user_friend_list;
            get_user_status             = p_get_user_status;
            add_agreement_done          = p_add_agreement_done;
        }
Example #21
0
 public override string ToString()
 {
     return("UserId = " + UserId.ToString() + ",Name = " + Name + ",Password = "******",FirstName = " + FirstName + ",LastName = " + LastName + ",Email = " + Email + ",IsLoggedIn = " + IsLoggedIn.ToString() + ",HasAdminRight = " + HasAdminRight.ToString() + ",HasRefundright = " + HasRefundright.ToString() + ",HasDiscountRight = " + HasDiscountRight.ToString() + ",EnteredBy = " + EnteredBy.ToString() + ",EnteredTime = " + EnteredTime.ToString() + ",UpdatedBy = " + UpdatedBy.ToString() + ",UpdatedTime = " + UpdatedTime.ToString() + ",DeactivatedTime = " + DeactivatedTime.ToString());
 }
Example #22
0
    /// <summary>
    /// Initializes a new instance of the <see cref="DatabaseUser" /> class.
    /// </summary>
    /// <param name="username">The username.</param>
    /// <param name="password">The password.</param>
    /// <param name="userId">The user identifier.</param>
    /// <param name="position">The position.</param>
    /// <param name="friendsIds">The friends ids.</param>
    public User(string username, string password, string userId = null, Position position = null, IsLoggedIn isLoggedIn = null, string currentRoute = null, int progress = 0, StringList friendsIds = null, string currentSkin = "Default", long routeTime = 0) : this()
    {
        this.Username    = username;
        this.Password    = password;
        this.CurrentSkin = currentSkin;
        this.RouteTime   = routeTime;

        if (userId == null)
        {
            this.UserID = "";
            //string randomUserId = "";
            //do
            //{
            //    randomUserId = Strings.RandomString(16);
            //} while (!GameData.Instance.RequestServer(Strings.REQUEST_USER + ":" + Strings.USER_ID + "=" + randomUserId).Equals(Strings.USER_NOT_FOUND));
            //this.UserID = randomUserId;
        }
        else
        {
            this.UserID = userId;
        }
        if (friendsIds != null)
        {
            this.FriendsIDs = friendsIds;
        }
        if (position != null)
        {
            this.Position = position;
        }
        if (isLoggedIn != null)
        {
            this.IsLoggedIn = isLoggedIn;
        }
    }
 public BethesdaNetDownloader()
 {
     TriggerLogin = ReactiveCommand.CreateFromTask(() => Utils.CatchAndLog(RequestLoginAndCache), IsLoggedIn.Select(b => !b).ObserveOn(RxApp.MainThreadScheduler));
     ClearLogin   = ReactiveCommand.Create(() => Utils.DeleteEncryptedJson(DataName), IsLoggedIn.ObserveOn(RxApp.MainThreadScheduler));
 }
 public PublicChat(int p_max_users_count, RemoveChat p_remove_chat_from_manager, int p_chat_id, StartClientSomeoneLeftChatInform p_start_client_someone_left_chat_inform
                   , StartClientSomeoneJoinedChatInform p_start_client_someone_joined_chat_inform, ChatSend p_chat_send, IsLoggedIn p_is_logged_in
                   , StartEjectedChatUserInform p_start_ejected_user_chat_inform_dialog)
 {
     base.BaseConstruct(TypeOfChat.Public, p_chat_id, p_chat_send, p_remove_chat_from_manager, p_start_ejected_user_chat_inform_dialog, p_is_logged_in);
     all_users       = new List <ChatUser>();
     max_users_count = p_max_users_count;
     min_user_count  = 0;
     start_client_someone_joined_chat_inform = p_start_client_someone_joined_chat_inform;
     start_client_someone_left_chat_inform   = p_start_client_someone_left_chat_inform;
 }
 public Ma_PrivateChatManager(Dictionary <int, PrivateChat> p_all_chats, ChatSend p_chat_send,
                              StartEjectedChatUserInform p_start_ejected_user_chat_inform_dialog, IsLoggedIn p_is_logged_in
                              , StartClientSomeoneJoinedChatInform p_start_client_someone_joined_chat_inform)
 {
     base.BaseConstruct(TypeOfChat.Private, p_chat_send, p_start_ejected_user_chat_inform_dialog, p_is_logged_in);
     start_client_someone_joined_chat_inform = p_start_client_someone_joined_chat_inform;
     all_chats = p_all_chats;
 }