Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public UserProfileHost(MeChat meChat, List <FriendProfile> friends)
 {
     UserProfiles        = new List <UserProfile>();
     this.MeChat         = meChat;
     this.FriendProfiles = friends;
 }
Esempio n. 4
0
 public TalkDataHost(MeChat meChat)
 {
     MeChat = meChat;
 }
Esempio n. 5
0
 /// <summary>
 /// 起動します。資格情報がない場合Falseが返されます。
 /// </summary>
 public static bool Awake()
 {
     MeChat = new MeChat();
     return(MeChat.Awake());
 }
Esempio n. 6
0
 public FriendProfileHost(MeChat meChat)
 {
     FriendProfiles = new List <FriendProfile>();
     this.MeChat    = meChat;
 }