public MethodSignature(Model.Method method) { this.ReturnType = method.ReturnLength == 0 ? Types.Void.Instance : new SizeRange((BitCount)1, (BitCount)16).Proxy(); this.Parameters = new(method.ParameterLength); this.Name = method.Name; this.FullName = method.Unit.Name + "." + method.Name; }
public void BuildRequest(string resource, Method method, object body = null) { Request = new RestRequest (resource, method); Request.AddHeader ("Authorization", "bearer " + Token); Request.RequestFormat = DataFormat.Json; if (body != null) Request.AddBody (body); }