public ib0tClient(AresClient client, ulong time, ushort id)
        {
            this.WebClient          = true;
            this.WebCredentials     = new Html5RequestEventArgs();
            this.ID                 = id;
            this.Sock               = client.Sock;
            this.WebCredentials.Key = String.Empty;
            this.data_in.AddRange(client.ReceiveDump);
            this.WebCredentials.Key1     = String.Empty;
            this.WebCredentials.Key2     = String.Empty;
            this.WebCredentials.KeyData  = new byte[] { };
            this.WebCredentials.OldProto = false;
            this.WebCredentials.Host     = String.Empty;
            this.WebCredentials.Origin   = String.Empty;
            this.Time             = time;
            this.ProtoConnected   = false;
            this.ExternalIP       = ((IPEndPoint)this.Sock.RemoteEndPoint).Address;
            this.LocalEP          = (IPEndPoint)this.Sock.LocalEndPoint;
            this._vroom           = 0;
            this.Version          = String.Empty;
            this.IgnoreList       = new List <String>();
            this.CustomClientTags = new List <String>();
            this.Encryption       = new Encryption {
                Mode = EncryptionMode.Unencrypted
            };
            this.CaptchaWord = String.Empty;
            this.Captcha     = !Settings.Get <bool>("captcha");
            this.DNS         = client.DNS;
            this.JoinTime    = Helpers.UnixTime;
            this.FloodRecord = new FloodRecord();
            this.Font        = new AresFont();

            // vvvvvvvvvvvvvvvvvv
            this.Extended = true;
        }
Esempio n. 2
0
        private void DoSaveRecord(object obj)
        {
            ObservableCollection <string> causes = new ObservableCollection <string>();

            for (int i = 0; i < availablePresentationObjects.Count(); i++)
            {
                if (availablePresentationObjects[i].IsChecked == true)
                {
                    availablePresentationObjects[i].IsChecked = false;
                    Debug.WriteLine(availablePresentationObjects[i].Name);
                    causes.Add(availablePresentationObjects[i].Name);
                }
            }

            FloodRecord record = new FloodRecord();

            record.Latitude   = currentLatitude;
            record.Longitude  = currentLongitude;
            record.Time       = currentTimeStamp;
            record.WaterLevel = _waterLevel.ToString();
            record.causes     = causes;
            if (_waterLevel.ToString() != "" && causes.Count() != 0)
            {
                _waterLevel = 230 / 2;
                RaisePropertyChanged("waterLevel");
            }
            othersIsChecked = false;
            others          = "";
            RaisePropertyChanged("AvailablePresentationObjects");
            RaisePropertyChanged("others");
            RaisePropertyChanged("othersIsChecked");
            MenuViewBase recordView = HomeScreenViewModel.GetInstance().ShowRecordView();

            recordView.RaiseUserInputReadyEvent(new SaveButtonClickedEventArgs(record));
        }
        public SavedRecordAuthenticator(Object r)
        {
            SaveButtonClickedEventArgs e = (SaveButtonClickedEventArgs)r;

            record = (FloodRecord)e.SavedRecord;
        }