public DispatchServerRedirectionResponse(int trid, IPEndPoint host) : base(trid, PackageType.DispatchServerRedirection) { host.NotNull(); this.Host = host; }
public Mixer(IPEndPoint endpoint, string account, int sessionID, int timeout) { endpoint.NotNull(); account.NotEmpty(); this.socket = new MessengerSocket(endpoint, timeout); this.Account = account; this.SessionID = sessionID; this.Timeout = timeout; this.socket.Reader.MessageReceived += MessageReceived; }
public NotificationServerRedirectionResponse(int trid, IPEndPoint host, AuthorizationType authorization, string ticket, string directHost, bool isDirect) : base(trid, PackageType.NotificationServerRedirection) { host.NotNull(); ticket.NotEmpty(); directHost.NotEmpty(); this.Host = host; this.Authorization = authorization; this.Ticket = ticket; this.DirectHost = directHost; this.IsDirect = isDirect; }
public ChatInvitationResponse(int sessionId, IPEndPoint host, AuthorizationType authorization, string ticket, string passport, string name, string directHost, bool directConnection) : base(0, PackageType.ChatInvitation) { host.NotNull(); ticket.NotEmpty(); passport.NotEmpty(); name.NotEmpty(); directHost.NotEmpty(); this.SessionID = sessionId; this.Host = host; this.Authorization = authorization; this.Ticket = ticket; this.Passport = passport; this.Name = name; this.DirectHost = directHost; this.DirectConnection = directConnection; }