Add field "app_id" in FriendBecameOnline for user longpoll
@@ -212,6 +212,7 @@ type FriendBecameOnline struct {
UserID int
Extra int
Timestamp time.Time
+ AppID int
}
func (result *FriendBecameOnline) parse(i []interface{}) error {
@@ -231,6 +232,10 @@ func (result *FriendBecameOnline) parse(i []interface{}) error {
result.Timestamp = time.Unix(int64(v), 0)
}
+ if v, ok := i[4].(float64); ok {
+ result.AppID = int(v)
+ }
+
return nil
}
