internal override void Run(CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { LogIn login = (LogIn) msg; bool isEnglish = login.Language.Equals("01") ? true : false; subsystem.Login(login.UserID, isEnglish, login.StaffGrade); }
internal override void Run(CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { Heartbeat hb = (Heartbeat)msg; int counter = Int32.Parse(hb.HeartbeatCount); subsystem.HealthCheck(counter); counter++; if(counter > 9999) { counter = 1; } String value = "000" + counter; hb.HeartbeatCount = value.Substring(value.Length - 4); cci.SendMessage(hb); }
internal override void Run(CCApiNet.CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { SetDimension s = (SetDimension)msg; int width = Convert.ToInt32(s.Width); if(width > 1920) { width=1920; } int height = Convert.ToInt32(s.Height); if(height>1012) { height = 1012; } subsystem.ChangeDimension(width, height); }
internal override void Run(CCApiNet.CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { subsystem.NewEmptyIncomingCallList(); }
internal override void Run(CCApiNet.CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { AccessPrivilege ap = (AccessPrivilege)msg; subsystem.ConfigPrivilege(ap.Access_Privilege); }
internal override void Run(CCApiNet.CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { SetInput input = (SetInput)msg; subsystem.Input(input.AttributeType,!"0".Equals(input.AttributeFlag)); }
internal override void Run(CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { subsystem.Logout(); }
internal override void Run(CCApiNet.CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { ChangeUserID id = (ChangeUserID)msg; subsystem.ChangeUserId(); }
internal override void Run(CCApiNet.CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { ApplicationError error = (ApplicationError)msg; subsystem.Error(error.ErrorMsgType, error.ErrorMessage); }
internal override void Run(CCApiNet.CCInterface cci, ICCSubsystem subsystem, CCApiNet.IBaseMessage msg) { SetPosition position = (SetPosition)msg; subsystem.ChangePosition(Convert.ToInt32(position.WinXPos),Convert.ToInt32(position.WinYPos)); }