Beispiel #1
0
        private void onCommentReceive(AndroidJavaObject comments)
        {
            List <QGameKit.LiveComment> list = new List <QGameKit.LiveComment>();
            int num = comments.Call <int>("size", new object[0]);

            for (int i = 0; i < num; i++)
            {
                AndroidJavaObject androidJavaObject = comments.Call <AndroidJavaObject>("get", new object[]
                {
                    i
                });
                QGameKit.LiveComment liveComment = new QGameKit.LiveComment();
                liveComment.type    = (QGameKit.CommentType)androidJavaObject.Get <int>("msgType");
                liveComment.nick    = androidJavaObject.Get <string>("nick");
                liveComment.content = androidJavaObject.Get <string>("msgContent");
                string s = androidJavaObject.Call <string>("msgTime2String", new object[0]);
                liveComment.timestamp = long.Parse(s);
                list.Add(liveComment);
            }
            this.commentDelegate(list);
        }
Beispiel #2
0
 public static void SendComment(QGameKit.LiveComment comment)
 {
     Debug.LogError("SendComment unsupported yet!");
 }