コード例 #1
0
        public void OperatorStatusJson()
        {
            var status = new OperatorStatus
            {
                Success      = true,
                Code         = 1,
                Message      = "Message",
                InnerMessage = "InnerMessage",
                Exception    = new System.Exception("Exception")
            };
            var microsoft  = new JsonSerializeProxy();
            var newtonsoft = new NewtonJsonSerializeProxy();
            var json1      = newtonsoft.ToString(status, true);
            var json2      = microsoft.ToString(status, true);

            Assert.IsTrue(json2 == json1, json2);
            var status1 = newtonsoft.ToObject <OperatorStatus>(json1);
            var status2 = microsoft.ToObject <OperatorStatus>(json2);

            Assert.IsTrue(status1.Message == status2.Message, json2);
            Assert.IsTrue(status1.Exception == null, json2);

            var xml     = new XmlSerializeProxy();
            var status3 = xml.ToObject <OperatorStatus>(xml.ToString(status));

            Assert.IsTrue(status3.Message == status.Message, json2);
            Assert.IsTrue(status3.Exception == null, json2);

            var cdata   = new CDataXmlSerializeProxy();
            var status4 = cdata.ToObject <OperatorStatus>(cdata.ToString(status));

            Assert.IsTrue(status4.Message == status.Message, json2);
            Assert.IsTrue(status4.Exception == null, json2);
        }
コード例 #2
0
 public OperatorNode(string operatorNodeID, OperatorStatus operatorStatus, string name, string soapReplicationURL)
 {
     this.OperatorNodeID     = operatorNodeID;
     this.OperatorStatus     = operatorStatus;
     this.Name               = name;
     this.SoapReplicationURL = soapReplicationURL;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 /// <param name="status">The operator availability</param>
 /// <param name="longAlphanumeric">The operator name in long alphanumeric format</param>
 /// <param name="shortAlphanumeric">The operator name in short alphanumeric format</param>
 /// <param name="numeric">The operator in numeric format</param>
 /// <remarks>If the phone does not support one of the formats <b>longAlphanumeric</b>,
 /// <b>shortAlphanumeric</b>, <b>numeric</b>, the curresponding string is left empty.</remarks>
 public OperatorInfo2(OperatorStatus status, string longAlphanumeric, string shortAlphanumeric, string numeric)
 {
     this.stat       = status;
     this.longAlpha  = longAlphanumeric;
     this.shortAlpha = shortAlphanumeric;
     this.numeric    = numeric;
     this.act        = string.Empty;
 }
コード例 #4
0
        private void StopScreeshot()
        {
            this.Visible = false;

            this.ScreenshotStatus = ScreenshotStatus.None;
            this.OperatorStatus   = OperatorStatus.None;
            this.Cursor           = Cursors.Default;
        }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the class.
 /// </summary>
 /// <param name="status">The operator availability</param>
 /// <param name="longAlphanumeric">The operator name in long alphanumeric format</param>
 /// <param name="shortAlphanumeric">The operator name in short alphanumeric format</param>
 /// <param name="numeric">The operator in numeric format</param>
 /// <param name="accessTechnology">The access technology the operator uses.</param>
 /// <remarks>
 /// <para>If the phone does not support one of the formats <b>longAlphanumeric</b>,
 /// <b>shortAlphanumeric</b>, <b>numeric</b>, the curresponding string is left empty.</para>
 /// <para>The <b>accessTechnology</b> is optional, as it is only useful for terminals capable
 /// to register to more than one access technology.</para>
 /// </remarks>
 public OperatorInfo2(OperatorStatus status, string longAlphanumeric, string shortAlphanumeric, string numeric, string accessTechnology)
 {
     this.stat       = status;
     this.longAlpha  = longAlphanumeric;
     this.shortAlpha = shortAlphanumeric;
     this.numeric    = numeric;
     this.act        = accessTechnology;
 }
コード例 #6
0
 // Token: 0x06000077 RID: 119 RVA: 0x00003984 File Offset: 0x00001B84
 protected override void ValidateAndType(OperatorStatus status, IList <Edge> inputEdges)
 {
     if (!ValidationUtils.ValidateInputExists(status, inputEdges))
     {
         return;
     }
     this.Specification = new TransformationSpecification();
     this.Specification.AddAll(0, inputEdges[0].RecordSetType);
     status.SetSingleOutput(this.Specification.MakeOutputType());
 }
コード例 #7
0
ファイル: OperatorService.cs プロジェクト: uwitec/ideacode
    public static void SetOperatorStatus(string operatorId, OperatorStatus operatorStatus, bool sendEvent)
    {
        Operator op = OperatorService.GetOperatorById(operatorId);

        if (op == null)
        {
            throw new BLLInternalException("Operator not found: OperatorId=" + operatorId);
        }
        op.Status = operatorStatus;
        if (OperatorStatusChange != null)
        {
            OperatorStatusChange(null, new OperatorStatusChangeEventArgs(op.OperatorId, op.Status));
        }
    }
コード例 #8
0
ファイル: Operator.cs プロジェクト: honj51/ideacode
        public Operator(SqlDataReader data)
        {
            if (!Convert.IsDBNull(data["OperatorId"])) operatorId = (string)data["OperatorId"];
            if (!Convert.IsDBNull(data["AccountId"])) accountId = (string)data["AccountId"];
            if (!Convert.IsDBNull(data["LoginName"])) loginName = (string)data["LoginName"];
            if (!Convert.IsDBNull(data["Password"])) password = (string)data["Password"];
            if (!Convert.IsDBNull(data["NickName"])) nickName = (string)data["NickName"];
            if (!Convert.IsDBNull(data["Email"])) email = (string)data["Email"];
            if (!Convert.IsDBNull(data["IsAdmin"]))
            {
                IsAdmin=Convert.ToBoolean(data["IsAdmin"].ToString());
            }

            if (!Convert.IsDBNull(data["Status"])) status = (OperatorStatus) Enum.Parse((typeof(OperatorStatus)),data["Status"].ToString());
            if (!Convert.IsDBNull(data["AVChatStatus"])) aVChatStatus = (string)data["AVChatStatus"];
        }
コード例 #9
0
 // Token: 0x060000B6 RID: 182 RVA: 0x00004D38 File Offset: 0x00002F38
 protected override void ValidateAndType(OperatorStatus status, IList <Edge> inputEdges)
 {
     if (status == null)
     {
         throw new ArgumentNullException("status");
     }
     if (!ValidationUtils.ValidateInputExists(status, inputEdges))
     {
         return;
     }
     ValidationUtils.ValidateTypedInputFieldExistence(status, this.OtherFieldName, BuiltInTypes.BucketType, inputEdges);
     ValidationUtils.ValidateTypedInputFieldExistence(status, this.PartitionIdFieldName, BuiltInTypes.GuidType, inputEdges);
     this.Specification = new TransformationSpecification();
     this.Specification.AddAll(0, inputEdges[0].RecordSetType);
     status.SetSingleOutput(this.Specification.MakeOutputType());
 }
コード例 #10
0
        /// <summary>
        /// 设置控件使用状态
        /// </summary>
        /// <param name="operateStatus">操作状态</param>
        private void SetOperatorStatus(OperatorStatus operateStatus)
        {
            switch (operateStatus)
            {
            case OperatorStatus.AddBill:
                SetAddBillStatus();
                break;

            case OperatorStatus.EditBill:
                SetUpdateBillStatus();
                break;

            case OperatorStatus.SaveBill:
                SetSaveBillStatus();
                break;
            }
        }
コード例 #11
0
        public void HelperJson()
        {
            var status = new OperatorStatus
            {
                Success      = true,
                Code         = 1,
                Message      = "Message",
                InnerMessage = "InnerMessage",
                Exception    = new System.Exception("Exception")
            };
            var json1 = SmartSerializer.ToInnerString(status);
            var opt   = SmartSerializer.FromInnerString <OperatorStatus>(json1);
            var json2 = SmartSerializer.ToInnerString(opt);

            opt = (OperatorStatus)SmartSerializer.FromInnerString(json2, typeof(OperatorStatus));
            Assert.IsTrue(opt.Message == "Message", json1);
            Assert.IsTrue(opt.InnerMessage == null, json1);
        }
コード例 #12
0
 /// <summary>
 /// 设置保存后单据状态
 /// </summary>
 private void SetSaveBillStatus()
 {
     btnAddHead.Enabled         = true;
     btnModifyHead.Enabled      = true;
     btnDeleteHead.Enabled      = true;
     btn_Check.Enabled          = true;
     btn_cancel.Enabled         = false;
     btnAddDetail.Enabled       = false;
     btnDeleteDetail.Enabled    = false;
     btnSave.Enabled            = false;
     btnLowerLimit.Enabled      = false;
     btnUpperLowerLimit.Enabled = false;
     dgDetail.ReadOnly          = true;
     dgHead.ReadOnly            = true;
     dgHead.Enabled             = true;
     currentOperateStatus       = OperatorStatus.SaveBill;
     lstDeleteDetails.Clear();
 }
コード例 #13
0
 /// <summary>
 /// 设置新增单据状态
 /// </summary>
 private void SetAddBillStatus()
 {
     btnAddHead.Enabled         = false;
     btnModifyHead.Enabled      = false;
     btnDeleteHead.Enabled      = false;
     btn_Check.Enabled          = false;
     btn_cancel.Enabled         = true;
     btnAddDetail.Enabled       = true;
     btnDeleteDetail.Enabled    = true;
     btnSave.Enabled            = true;
     btnLowerLimit.Enabled      = true;
     btnUpperLowerLimit.Enabled = true;
     dgDetail.ReadOnly          = false;
     dgHead.ReadOnly            = false;
     SetPlanDetailGridColumnStaus();
     currentOperateStatus = OperatorStatus.AddBill;
     SetHeadGridReadOnly();
 }
コード例 #14
0
        public void Get(bool activeOperatorsOnly)
        {
            SqlStoredProcedureAccessor sp = new SqlStoredProcedureAccessor();

            sp.ProcedureName = "net_operators_get";

            SqlDataReaderAccessor reader = sp.ExecuteReader();

            try
            {
                this.Clear();

                while (reader.Read())
                {
                    OperatorStatus operatorStatus = (OperatorStatus)reader.GetShort("operatorStatusID");
                    string         name           = reader.GetString("name");

                    if (!activeOperatorsOnly ||
                        OperatorStatus.New == operatorStatus ||
                        OperatorStatus.Normal == operatorStatus)
                    {
                        this.Add(
                            reader.GetGuidString("operatorKey"),
                            operatorStatus,
                            name,
                            reader.GetString("soapReplicationURL"));
                    }
                    else
                    {
                        Debug.Write(
                            SeverityType.Info,
                            CategoryType.Replication,
                            String.Format(
                                "Removing operator '{0}' with status '{1}' from list of replication operators",
                                name,
                                operatorStatus.ToString()));
                    }
                }
            }
            finally
            {
                reader.Close();
            }
        }
コード例 #15
0
        /// <summary>
        /// 设置控件使用状态
        /// </summary>
        /// <param name="operateStatus">操作状态</param>
        private void SetOperatorStatus(OperatorStatus operateStatus)
        {
            switch (operateStatus)
            {
            case OperatorStatus.AddBill:
                btn_Cancel.Enabled  = true;
                btn_Save.Enabled    = true;
                btn_Setting.Enabled = false;
                dgLimit.ReadOnly    = false;
                SetColumnReadOnly();
                break;

            case OperatorStatus.SaveBill:
                btn_Cancel.Enabled  = false;
                btn_Save.Enabled    = false;
                btn_Setting.Enabled = true;
                dgLimit.ReadOnly    = true;
                break;
            }
        }
コード例 #16
0
ファイル: Operator.cs プロジェクト: uwitec/ideacode
        public Operator(SqlDataReader data)
        {
            if (!Convert.IsDBNull(data["OperatorId"]))
            {
                operatorId = (string)data["OperatorId"];
            }
            if (!Convert.IsDBNull(data["AccountId"]))
            {
                accountId = (string)data["AccountId"];
            }
            if (!Convert.IsDBNull(data["LoginName"]))
            {
                loginName = (string)data["LoginName"];
            }
            if (!Convert.IsDBNull(data["Password"]))
            {
                password = (string)data["Password"];
            }
            if (!Convert.IsDBNull(data["NickName"]))
            {
                nickName = (string)data["NickName"];
            }
            if (!Convert.IsDBNull(data["Email"]))
            {
                email = (string)data["Email"];
            }
            if (!Convert.IsDBNull(data["IsAdmin"]))
            {
                IsAdmin = Convert.ToBoolean(data["IsAdmin"].ToString());
            }

            if (!Convert.IsDBNull(data["Status"]))
            {
                status = (OperatorStatus)Enum.Parse((typeof(OperatorStatus)), data["Status"].ToString());
            }
            if (!Convert.IsDBNull(data["AVChatStatus"]))
            {
                aVChatStatus = (string)data["AVChatStatus"];
            }
        }
コード例 #17
0
        private void FormMain_MouseUp(object sender, MouseEventArgs e)
        {
            if (ScreenshotStatus != ScreenshotStatus.Screenshoting)
            {
                return;
            }

            if (OperatorStatus == OperatorStatus.StartSelect)
            {
                if (e.Button == MouseButtons.Left)
                {
                    OperatorStatus = OperatorStatus.FinishedSelect;
                    this.Invalidate();
                }
            }

            if (OperatorStatus == OperatorStatus.FinishedSelect)
            {
                MoveSelectRectState = MoveSelectRectState.None;
                this.Invalidate();
            }
        }
コード例 #18
0
ファイル: TestFixture.cs プロジェクト: uwitec/ideacode
        private OperatorStatus nextOperatorStatus(OperatorStatus operatorStatus)
        {
            switch (operatorStatus)
            {
            case OperatorStatus.Idle:
                return(OperatorStatus.Chatting);

            case OperatorStatus.Chatting:
                return(OperatorStatus.BeRightBack);

            case OperatorStatus.BeRightBack:
                return(OperatorStatus.Away);

            case OperatorStatus.Away:
                return(OperatorStatus.Offline);

            case OperatorStatus.Offline:
                return(OperatorStatus.Idle);

            default:
                return(OperatorStatus.Offline);
            }
        }
コード例 #19
0
        /// <summary>
        /// 判断客服状态
        /// </summary>
        /// <param name="os"></param>
        /// <returns></returns>
        public static string GetOperatorsStatusText(OperatorStatus os)
        {
            string status;

            switch (os)
            {
            case OperatorStatus.Idle:
                status = "空闲";
                break;

            case OperatorStatus.Away:
                status = "离开";
                break;

            case OperatorStatus.Chatting:
                status = "对话中";
                break;

            case OperatorStatus.BeRightBack:
                status = "一会回来";
                break;

            case OperatorStatus.Offline:
                status = "离线";
                break;

            case OperatorStatus.InviteChat:
                status = "对话邀请中";
                break;

            default:
                status = "离线";
                break;
            }
            return(status);
        }
コード例 #20
0
 public static OperatorNodeCollection GetOperators(OperatorStatus status)
 {
     return(GetOperators(true, (int)status));
 }
コード例 #21
0
ファイル: Common.cs プロジェクト: honj51/ideacode
        /// <summary>
        /// 判断客服状态
        /// </summary>
        /// <param name="os"></param>
        /// <returns></returns>
        public static string GetOperatorsStatusText(OperatorStatus os)
        {
            string status;
            switch (os)
            {
                case OperatorStatus.Idle:
                    status = "空闲";
                    break;
                case OperatorStatus.Away:
                    status = "离开";
                    break;
                case OperatorStatus.Chatting:
                    status = "对话中";
                    break;
                case OperatorStatus.BeRightBack:
                    status = "一会回来";
                    break;
                case OperatorStatus.Offline:
                    status = "离线";
                    break;
                case OperatorStatus.InviteChat:
                    status = "对话邀请中";
                    break;
                default:
                    status = "离线";
                    break;

            }
            return status;
        }
コード例 #22
0
ファイル: Operator.cs プロジェクト: honj51/ideacode
 public Operator()
 {
     this.operatorId = Guid.NewGuid().ToString();
     this.status = OperatorStatus.Offline;
 }
コード例 #23
0
        private void FormMain_MouseDown(object sender, MouseEventArgs e)
        {
            if (ScreenshotStatus != ScreenshotStatus.Screenshoting)
            {
                return;
            }

            if (OperatorStatus == OperatorStatus.None)
            {
                if (e.Button == MouseButtons.Left)
                {
                    OperatorStatus     = OperatorStatus.StartSelect;
                    StartMouseLocation = e.Location;
                    StopMouseLocation  = e.Location;
                }
            }

            //变换选区
            if (OperatorStatus == OperatorStatus.FinishedSelect)
            {
                if (SelectRect.Contains(e.Location))
                {
                    MoveSelectRectState = MoveSelectRectState.MoveAll;
                }

                if (RectLeftTop.Contains(e.Location))
                {
                    MoveSelectRectState = MoveSelectRectState.MoveLeftTop;
                }

                if (RectLeftBottom.Contains(e.Location))
                {
                    MoveSelectRectState = MoveSelectRectState.MoveLeftBottom;
                }

                if (RectRightTop.Contains(e.Location))
                {
                    MoveSelectRectState = MoveSelectRectState.MoveRightTop;
                }

                if (RectRightBottom.Contains(e.Location))
                {
                    MoveSelectRectState = MoveSelectRectState.MoveRightBottom;
                }

                if (RectTopMiddle.Contains(e.Location))
                {
                    MoveSelectRectState = MoveSelectRectState.MoveTopMiddle;
                }

                if (RectBottomMiddle.Contains(e.Location))
                {
                    MoveSelectRectState = MoveSelectRectState.MoveBottomMiddle;
                }

                if (RectLeftMiddle.Contains(e.Location))
                {
                    MoveSelectRectState = MoveSelectRectState.MoveLeftMiddle;
                }

                if (RectRightMiddle.Contains(e.Location))
                {
                    MoveSelectRectState = MoveSelectRectState.MoveRightMiddle;
                }

                MoveStartLocation = e.Location;
            }
        }
コード例 #24
0
 // Token: 0x060000C6 RID: 198 RVA: 0x00005317 File Offset: 0x00003517
 protected override void ValidateProperties(OperatorStatus status, IList <Edge> inputEdges)
 {
     ValidationUtils.ValidateTypedInputFieldExistence(status, this.SelectPropertiesFieldName, BuiltInTypes.ListType(BuiltInTypes.StringType), inputEdges);
     ValidationUtils.ValidateTypedInputFieldExistence(status, this.TenantIdFieldName, BuiltInTypes.GuidType, inputEdges);
 }
コード例 #25
0
ファイル: OperatorService.cs プロジェクト: honj51/ideacode
 public static void SetOperatorStatus(string operatorId, OperatorStatus operatorStatus, bool sendEvent)
 {
     Operator op = OperatorService.GetOperatorById(operatorId);
     if (op == null)
     {
         throw new BLLInternalException("Operator not found: OperatorId=" + operatorId);
     }
     op.Status = operatorStatus;
     if (OperatorStatusChange != null)
     {
         OperatorStatusChange(null, new OperatorStatusChangeEventArgs(op.OperatorId, op.Status));
     }
 }
コード例 #26
0
ファイル: OperatorService.cs プロジェクト: uwitec/ideacode
 /// <summary>
 /// 设置客服状态
 /// </summary>
 /// <param name="operatorId"></param>
 /// <param name="operatorStatus"></param>
 public static void SetOperatorStatus(string operatorId, OperatorStatus operatorStatus)
 {
     SetOperatorStatus(operatorId, operatorStatus, true);
 }
コード例 #27
0
ファイル: OperatorInfo2.cs プロジェクト: gbmakaveli/GSMComm
		/// <summary>
		/// Initializes a new instance of the class.
		/// </summary>
		/// <param name="status">The operator availability</param>
		/// <param name="longAlphanumeric">The operator name in long alphanumeric format</param>
		/// <param name="shortAlphanumeric">The operator name in short alphanumeric format</param>
		/// <param name="numeric">The operator in numeric format</param>
		/// <param name="accessTechnology">The access technology the operator uses.</param>
		/// <remarks>
		/// <para>If the phone does not support one of the formats <b>longAlphanumeric</b>,
		/// <b>shortAlphanumeric</b>, <b>numeric</b>, the curresponding string is left empty.</para>
		/// <para>The <b>accessTechnology</b> is optional, as it is only useful for terminals capable
		/// to register to more than one access technology.</para>
		/// </remarks>
		public OperatorInfo2(OperatorStatus status, string longAlphanumeric, string shortAlphanumeric, string numeric, string accessTechnology)
		{
			this.stat = status;
			this.longAlpha = longAlphanumeric;
			this.shortAlpha = shortAlphanumeric;
			this.numeric = numeric;
			this.act = accessTechnology;
		}
コード例 #28
0
 public int Add(string operatorNodeID, OperatorStatus operatorStatus, string name, string soapReplicationURL)
 {
     return(List.Add(new OperatorNode(operatorNodeID, operatorStatus, name, soapReplicationURL)));
 }
コード例 #29
0
ファイル: OperatorInfo2.cs プロジェクト: gbmakaveli/GSMComm
		/// <summary>
		/// Initializes a new instance of the class.
		/// </summary>
		/// <param name="status">The operator availability</param>
		/// <param name="longAlphanumeric">The operator name in long alphanumeric format</param>
		/// <param name="shortAlphanumeric">The operator name in short alphanumeric format</param>
		/// <param name="numeric">The operator in numeric format</param>
		/// <remarks>If the phone does not support one of the formats <b>longAlphanumeric</b>,
		/// <b>shortAlphanumeric</b>, <b>numeric</b>, the curresponding string is left empty.</remarks>
		public OperatorInfo2(OperatorStatus status, string longAlphanumeric, string shortAlphanumeric, string numeric)
		{
			this.stat = status;
			this.longAlpha = longAlphanumeric;
			this.shortAlpha = shortAlphanumeric;
			this.numeric = numeric;
			this.act = string.Empty;
		}
コード例 #30
0
ファイル: TestFixture.cs プロジェクト: honj51/ideacode
 private OperatorStatus nextOperatorStatus(OperatorStatus operatorStatus)
 {
     switch (operatorStatus)
     {
         case OperatorStatus.Idle:
             return OperatorStatus.Chatting;
         case OperatorStatus.Chatting:
             return OperatorStatus.BeRightBack;
         case OperatorStatus.BeRightBack:
             return OperatorStatus.Away;
         case OperatorStatus.Away:
             return OperatorStatus.Offline;
         case OperatorStatus.Offline:
             return OperatorStatus.Idle;
         default:
             return OperatorStatus.Offline;
     }
 }
コード例 #31
0
ファイル: Operator.cs プロジェクト: uwitec/ideacode
 public Operator()
 {
     this.operatorId = Guid.NewGuid().ToString();
     this.status     = OperatorStatus.Offline;
 }
コード例 #32
0
ファイル: OperatorService.cs プロジェクト: honj51/ideacode
 /// <summary>
 /// 设置客服状态
 /// </summary>
 /// <param name="operatorId"></param>
 /// <param name="operatorStatus"></param>
 public static void SetOperatorStatus(string operatorId, OperatorStatus operatorStatus)
 {
     SetOperatorStatus(operatorId, operatorStatus, true);
 }
コード例 #33
0
        public ActionResult <StatusReport> Get(bool kill = false)
        {
            if (State.KillingAllowed && kill)
            {
                Log.Error("Instant death through killswitch");
                Environment.Exit(0);
            }

            if ((DateTime.Now - _lastTileIndexation).TotalMinutes > 2)
            {
                _loadedTilesCount   = OsmTransferGenerator.LoadedTilesCount();
                _lastTileIndexation = DateTime.Now;
            }


            var state = State.GlobalState;

            if (state == null)
            {
                return(new StatusReport(
                           DateTime.Now,
                           0,
                           null,
                           State.Version,
                           new Dictionary <string, string>()
                {
                    { "statusmessage", "Still booting, hang on" }
                },
                           new List <string>(),
                           new List <string>(),
                           _loadedTilesCount
                           ));
            }

            var tasks   = new Dictionary <string, string>();
            var reports = new Dictionary <string, OperatorStatus>();

            foreach (var provider in state.Operators.All)
            {
                var        connsDb = provider.Tdb.Latest.ConnectionsDb;
                TimeWindow window  = null;
                if (connsDb != null && connsDb.EarliestDate != ulong.MaxValue && connsDb.LatestDate != ulong.MinValue)
                {
                    window = new TimeWindow(connsDb.EarliestDate.FromUnixTime(), connsDb.LatestDate.FromUnixTime());
                }

                var report = new OperatorStatus(provider.AltNames.ToList(), provider.Tags.ToList(), window);
                reports.Add(provider.Name, report);
            }


            tasks.Add("statusmessage", state.FreeMessage);


            return(new StatusReport(
                       state.BootTime,
                       (long)(DateTime.Now - state.BootTime).TotalSeconds,
                       reports,
                       State.Version,
                       tasks,
                       state.OtherModeBuilder.SupportedUrls(),
                       state.OtherModeBuilder.OsmVehicleProfiles.Select(prof => prof.Name).ToList(), _loadedTilesCount
                       ));
        }
コード例 #34
0
 public OperatorStatusChangeEventArgs(string operatorId, OperatorStatus status)
 {
     this.OperatorId = operatorId;
     this.Status     = status;
 }