This commit is contained in:
Paul Schneider 2020-12-30 03:10:02 +00:00
commit 345c787e06
12 changed files with 34 additions and 29 deletions

View file

@ -10,8 +10,20 @@ using RestSharp;
using RestSharp.Deserializers;
using System.Linq;
namespace GoogleTranslateNET
{
public class NoSevrerSideImplementationAttribute : Attribute
{
public string Reason { get ; private set; }
public NoSevrerSideImplementationAttribute(string reason) : base()
{
Reason = reason;
}
}
[NoSevrerSideImplementation("none")]
public class GoogleTranslate
{
private string _key;
@ -193,4 +205,4 @@ namespace GoogleTranslateNET
return "There was an error. Unable to determine the cause.";
}
}
}
}

View file

@ -25,7 +25,7 @@
"defaultNamespace": "Yavsc"
},
"dependencies": {
"Newtonsoft.Json": "6.0.0",
"Newtonsoft.Json": "6.0.1-beta1",
"Gapi.net45": "1.0.1",
"RestSharp": "103.4.0"
},