Add portable python environment

This commit is contained in:
qianlifeng
2014-07-09 18:15:23 +08:00
parent 3efe3d63ce
commit 53cb4189d8
893 changed files with 19533 additions and 42 deletions

View File

@@ -30,33 +30,31 @@ namespace Wox.RPC
public class JsonRPCQueryResponseModel : JsonRPCResponseModel
{
public List<JsonRPCResult> QueryResults
{
get
{
return JsonConvert.DeserializeObject<List<JsonRPCResult>>(Result);
}
}
public new List<JsonRPCResult> Result { get; set; }
}
public class JsonRPCRequestModel : JsonRPCModelBase
{
public string Method { get; set; }
/*
* 1. c# can't use params as the variable name
* 2. all prarmeter should be string type
*/
public List<string> Parameters { get; set; }
/// <summary>
/// counld be list<string> or string type
/// </summary>
public object Parameters { get; set; }
public override string ToString()
{
if (Parameters is string)
{
return string.Format(@"{{\""method\"":\""{0}\"",\""parameters\"":\""{1}\""}}", Method, Parameters);
}
return string.Empty;
}
}
public class JsonRPCResult : Result
{
public string JSONRPCAction { get; set; }
public JsonRPCRequestModel JSONRPCActionModel
{
get { return null; }
}
public JsonRPCRequestModel JsonRPCAction { get; set; }
}
}