public static void Quited() { autoSave = false; SendManager.SendActiveHistoryData(false); ClearLastData(); }
void Awake() { panelStatic = this; StaticBtnGameManager = this.btnGameManager; StaticBtnGameManagerBack = this.btnGameManagerBack; StaticSendManager = this.sendManager; StaticTVMessage = this.tvMessage; StaticWarnings = warnings; StaticYuanPicManger = yuanPicManger; StaticIteminfo = itemInfo; }
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); } }
/// <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(); }
private void OnInited() { Debug.Log("[DataBeen] SDK v" + PacketsIdentity.sdkVersion + " initialized successfully."); if (BeenDatas.IntroductSended == 0) { SendManager.SendPlayerData(); BeenDatas.IntroductSended = 1; } else { SendActiveHistory(); } SaveData(); }
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(); }
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(); }
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; } }
// 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); }
/// <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(); }
void Start() { my = this; InRoom.GetInRoomInstantiate().SM = this; //OnAllClick(this.gameObject); }
public static void SendCustomEventData(string eventName, CustomEventInfo[] infos) { SendManager.SendCustomEventData(eventName, infos); }
public static void SendRatedlData(string ratedName, int rate, CustomEventInfo[] infos = null) { SendManager.SendRatedData(ratedName, rate, infos); }
public static void SendSharedData(string method, string sharedName, CustomEventInfo[] infos = null) { SendManager.SendSharedData(method, sharedName, infos); }
public static void SendContentViewlData(string contentType, string result, CustomEventInfo[] infos = null) { SendManager.SendContentViewData(contentType, result, infos); }
public static void SendEndLevelData(string levelName, double score, bool success, CustomEventInfo[] infos = null) { SendManager.SendEndLevelData(levelName, score, success, infos); }
public static void SendStartLevelData(string levelName, CustomEventInfo[] infos = null) { SendManager.SendStartLevelData(levelName, infos); }
void Awake() { _instance = this; DontDestroyOnLoad(this.gameObject); }
// Use this for initialization public void Awake() { sendManager = PanelStatic.StaticSendManager; PanelStatic.StaticBtnGameManager.eventShowOne = this.ShowOne; btnTV.SetEvent(this.BtnTVCliek); }
public MsgController(UserManager UserManager, SendManager SendManager) { _UserManager = UserManager; _SendManager = SendManager; }
public static void SendPurchaseData(string productID, string token, CustomEventInfo[] infos = null) { SendManager.SendPurchaseData(productID, token, infos); }