30 lines
565 B
C#
30 lines
565 B
C#
using System;
|
|||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Linq;
|
||
|
|
using System.Text;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace Assets.MyGame.Scripts.Net
|
||
|
|
{
|
||
|
|
public enum MessageType
|
||
|
|
{
|
||
|
|
Invocation = 1,
|
||
|
|
StreamItem = 2,
|
||
|
|
Completion = 3,
|
||
|
|
StreamInvocation = 4,
|
||
|
|
CancelInvocation = 5,
|
||
|
|
Ping = 6,
|
||
|
|
Close = 7
|
||
|
|
}
|
||
|
|
[Serializable]
|
||
|
|
public class WebSocketResponseBase<T>
|
||
|
|
{
|
||
|
|
public int type;
|
||
|
|
public int invocationId;
|
||
|
|
public string target;
|
||
|
|
public List<T> arguments;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|