示例#1
0
    public static void Quited()
    {
        autoSave = false;
        SendManager.SendActiveHistoryData(false);

        ClearLastData();
    }
示例#2
0
 void Awake()
 {
     panelStatic              = this;
     StaticBtnGameManager     = this.btnGameManager;
     StaticBtnGameManagerBack = this.btnGameManagerBack;
     StaticSendManager        = this.sendManager;
     StaticTVMessage          = this.tvMessage;
     StaticWarnings           = warnings;
     StaticYuanPicManger      = yuanPicManger;
     StaticIteminfo           = itemInfo;
 }
示例#3
0
 public PacketInjectorForm(int edit = -1)
 {
     _editingIndex = edit;
     InitializeComponent();
     hexBox1.ByteProvider = new DynamicByteProvider(new byte[0]);
     if (_editingIndex != -1)
     {
         SendInfo si = SendManager.GetSendInfoAtListIndex(_editingIndex);
         LoadFormData(si.Name, si.Active, si.Packet);
     }
 }
示例#4
0
        /// <summary>
        /// 从数据库发送短信
        /// </summary>
        private void SendDBMSG(object state)
        {
            SendManager iss = new SendManager(this.SMSDBHelper);
            SendEntity  se  = new SendEntity();

            this.SMSDBHelper.Open();
            se = iss.GetEntity("0");
            sp.SendToCom(se.Phone, se.Txt);
            se.Sent = "1";
            iss.Update(se);
            this.SMSDBHelper.Close();
        }
示例#5
0
 private void OnInited()
 {
     Debug.Log("[DataBeen] SDK v" + PacketsIdentity.sdkVersion + " initialized successfully.");
     if (BeenDatas.IntroductSended == 0)
     {
         SendManager.SendPlayerData();
         BeenDatas.IntroductSended = 1;
     }
     else
     {
         SendActiveHistory();
     }
     SaveData();
 }
示例#6
0
        public void Arrange()
        {
            _distributionRepositoryMock = new Mock <IDistributionRepository>();
            _distributionRepositoryMock.Setup(r =>
                                              r.GetAsync(It.IsAny <string>(), It.IsAny <string>(), It.IsAny <CancellationToken>()))
            .ReturnsAsync((string id, string subscriptionId, CancellationToken cancellationToken) =>
                          new Distribution
            {
                Id             = id,
                SubscriptionId = subscriptionId,
                Status         = DistributionStatus.Pending,
            });

            _eventRepositoryMock = new Mock <IEventRepository>();
            _eventRepositoryMock.Setup(r => r.GetAsync(It.IsAny <string>(), It.IsAny <CancellationToken>()))
            .ReturnsAsync(new Event());

            _subscriptionRepositoryMock = new Mock <ISubscriptionRepository>();
            _subscriptionRepositoryMock.Setup(r => r.GetSubscriptionToEventAsync(It.IsAny <string>(), It.IsAny <string>(),
                                                                                 It.IsAny <string>(), It.IsAny <CancellationToken>()))
            .ReturnsAsync(new Subscription());

            _restClientMock = new Mock <IRestClient>();
            _restClientMock.Setup(c => c.ExecuteTaskAsync(It.IsAny <IRestRequest>(), It.IsAny <CancellationToken>()))
            .ReturnsAsync(new RestResponse
            {
                StatusCode     = HttpStatusCode.OK,
                ResponseStatus = ResponseStatus.Completed,
            });
            _restClientMock.Setup(c => c.DefaultParameters)
            .Returns(new List <Parameter>());

            _authenticationConfiguration = new AuthenticationConfiguration();

            _loggerMock = new Mock <ILoggerWrapper>();

            _manager = new SendManager(
                _distributionRepositoryMock.Object,
                _eventRepositoryMock.Object,
                _subscriptionRepositoryMock.Object,
                _restClientMock.Object,
                _authenticationConfiguration,
                _loggerMock.Object);

            _cancellationToken = new CancellationToken();
        }
示例#7
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            Packet packet = new Packet(Functions.CODE_NOP,
                                       (ushort)numOpenedSocketId.Value, 0, 0,
                                       BitConverter.ToUInt16(System.Net.IPAddress.Parse(txtNewSocketIp.Text).GetAddressBytes(), 0),
                                       (ushort)numNewSocketPort.Value,
                                       Encoding.ASCII.GetBytes(txtData.Text), Packet.Directions.None);
            SendInfo si = new SendInfo(txtItemName.Text, chkEnabled.Enabled, packet);

            if (_editingIndex != -1)
            {
                SendManager.ReplaceFromList(_editingIndex, si);
            }
            else
            {
                SendManager.AddToList(si);
            }
            Program.mainForm.LoadSendListItems();
            Close();
        }
示例#8
0
    void Awake()
    {
        sendManager = PanelStatic.StaticSendManager;
        //InsInput ();
        this.gameObject.SetActive(true);
        switch (charBarType)
        {
        case CharBarType.All:
        {
            sendManager.eventManagerAll += AddTextPlayer;
        }
        break;

        case CharBarType.Guild:
        {
            sendManager.eventManagerGuild += AddTextPlayer;
        }
        break;

        case CharBarType.Team:
        {
            sendManager.eventManagerTeam += AddTextPlayer;
        }
        break;

        case CharBarType.SomeBody:
        {
            sendManager.eventManagerSomeBody += AddTextPlayer;
        }
        break;

        case CharBarType.System:
        {
            sendManager.eventManagerSystem += AddTextPlayer;
        }
        break;
        }
    }
示例#9
0
    // Use this for initialization
    void Start()
    {
        InsInput();

        if (listTabel != null)
        {
            listTabel.eventPageChange += this.OnTableListPageChahge;
            listTabel.SetFrist(listText, RefrshText, 10);
//			for(int i=0;i<9;i++)
//			{
//				TextSequence(listInput);
//			}
        }


//		getInput = YuanInput.yuanInput;
        sendManager = PanelStatic.StaticSendManager;

        if (charBarType == CharBarType.MainAll)
        {
            sendManager.eventManagerMainAll += AddTextPlayer;
        }
        this.gameObject.SetActive(false);
    }
示例#10
0
 /// <summary>
 /// 从数据库发送短信
 /// </summary>
 private void SendDBMSG(object state)
 {
     SendManager iss = new SendManager(this.SMSDBHelper);
     SendEntity se = new SendEntity();
     this.SMSDBHelper.Open();
     se=iss.GetEntity("0");
     sp.SendToCom(se.Phone,se.Txt);
     se.Sent = "1";
     iss.Update(se);
     this.SMSDBHelper.Close();
 }
示例#11
0
 void Start()
 {
     my = this;
     InRoom.GetInRoomInstantiate().SM = this;
     //OnAllClick(this.gameObject);
 }
示例#12
0
 public static void SendCustomEventData(string eventName, CustomEventInfo[] infos)
 {
     SendManager.SendCustomEventData(eventName, infos);
 }
示例#13
0
 public static void SendRatedlData(string ratedName, int rate, CustomEventInfo[] infos = null)
 {
     SendManager.SendRatedData(ratedName, rate, infos);
 }
示例#14
0
 public static void SendSharedData(string method, string sharedName, CustomEventInfo[] infos = null)
 {
     SendManager.SendSharedData(method, sharedName, infos);
 }
示例#15
0
 public static void SendContentViewlData(string contentType, string result, CustomEventInfo[] infos = null)
 {
     SendManager.SendContentViewData(contentType, result, infos);
 }
示例#16
0
 public static void SendEndLevelData(string levelName, double score, bool success, CustomEventInfo[] infos = null)
 {
     SendManager.SendEndLevelData(levelName, score, success, infos);
 }
示例#17
0
 public static void SendStartLevelData(string levelName, CustomEventInfo[] infos = null)
 {
     SendManager.SendStartLevelData(levelName, infos);
 }
示例#18
0
 void Awake()
 {
     _instance = this;
     DontDestroyOnLoad(this.gameObject);
 }
示例#19
0
    // Use this for initialization

    public void Awake()
    {
        sendManager = PanelStatic.StaticSendManager;
        PanelStatic.StaticBtnGameManager.eventShowOne = this.ShowOne;
        btnTV.SetEvent(this.BtnTVCliek);
    }
示例#20
0
 public MsgController(UserManager UserManager, SendManager SendManager)
 {
     _UserManager = UserManager;
     _SendManager = SendManager;
 }
示例#21
0
 public static void SendPurchaseData(string productID, string token, CustomEventInfo[] infos = null)
 {
     SendManager.SendPurchaseData(productID, token, infos);
 }