コード例 #1
0
    public System.Collections.Generic.List <string> GetAllMethods(AltUnityComponent altUnityComponent)
    {
        var altComponent = Newtonsoft.Json.JsonConvert.SerializeObject(altUnityComponent);

        altUnityDriver.Socket.Client.Send(System.Text.Encoding.ASCII.GetBytes(altUnityDriver.CreateCommand("getAllMethods", altComponent)));
        string data = altUnityDriver.Recvall();

        if (!data.Contains("error:"))
        {
            return(Newtonsoft.Json.JsonConvert.DeserializeObject <System.Collections.Generic.List <string> >(data));
        }
        AltUnityDriver.HandleErrors(data);
        return(null);
    }
コード例 #2
0
 public GetAllMethods(SocketSettings socketSettings, AltUnityComponent altUnityComponent, AltUnityObject altUnityObject) : base(socketSettings)
 {
     this.altUnityComponent = altUnityComponent;
     this.altUnityObject    = altUnityObject;
 }
コード例 #3
0
 public System.Collections.Generic.List <string> GetAllMethods(AltUnityComponent altUnityComponent)
 {
     return(new GetAllMethods(socketSettings, altUnityComponent, this).Execute());
 }
コード例 #4
0
 public System.Collections.Generic.List <AltUnityProperty> GetAllProperties(AltUnityComponent altUnityComponent)
 {
     return(new GetAllProperties(socketSettings, altUnityComponent, this).Execute());
 }