public MeChatWs(MeChat meChat) { this.IsConnecting = false; this.IsEnable = false; this.MeChat = meChat; MyWs = new MyWebSocket(URI); MyWs.SetWsRequestHeader("token", MeChat.Connection.Token); MyWs.SetWsRequestHeader("id", MeChat.Connection.MyId); }
public static TalkData FromJson(MeChat meChat, string toId, BaseJson <TalkJson> json) { var v = new TalkData() { ToId = toId }; var cs = new List <Cell>(); foreach (TalkJson t in json.data) { cs.Add(GetCell(t, meChat.Config.Id)); } v.cells = cs; return(v); }
public UserProfileHost(MeChat meChat, List <FriendProfile> friends) { UserProfiles = new List <UserProfile>(); this.MeChat = meChat; this.FriendProfiles = friends; }
public TalkDataHost(MeChat meChat) { MeChat = meChat; }
/// <summary> /// 起動します。資格情報がない場合Falseが返されます。 /// </summary> public static bool Awake() { MeChat = new MeChat(); return(MeChat.Awake()); }
public FriendProfileHost(MeChat meChat) { FriendProfiles = new List <FriendProfile>(); this.MeChat = meChat; }