add CLS compliant
This commit is contained in:
@@ -4,7 +4,7 @@ namespace Untappd.Net.Request
|
||||
{
|
||||
public abstract class BasicRequest
|
||||
{
|
||||
protected abstract string _EndPoint { get; }
|
||||
protected abstract string EndPointWithConfiguration { get; }
|
||||
/// <summary>
|
||||
/// Pass in the parameter into the request...ie username, brewery, etc.
|
||||
/// </summary>
|
||||
@@ -15,9 +15,9 @@ namespace Untappd.Net.Request
|
||||
if (!String.IsNullOrEmpty(parameter))
|
||||
{
|
||||
parameter = string.Format("/{0}", parameter);
|
||||
return string.Format(_EndPoint, parameter);
|
||||
return string.Format(EndPointWithConfiguration, parameter);
|
||||
}
|
||||
return string.Format(_EndPoint, string.Empty);
|
||||
return string.Format(EndPointWithConfiguration, string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -937,7 +937,7 @@ namespace Untappd.Net.Responses.BeerInfo
|
||||
|
||||
public class BeerInfo : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/beer/info{0}"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/beer/info{0}"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -258,7 +258,7 @@ namespace Untappd.Net.Responses.BeerSearch
|
||||
|
||||
public class BeerSearch : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/search/beer"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/search/beer"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -908,7 +908,7 @@ namespace Untappd.Net.Responses.BreweryInfo
|
||||
|
||||
public class BreweryInfo : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/brewery/info{0}"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/brewery/info{0}"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -146,7 +146,7 @@ namespace Untappd.Net.Responses.BrewerySearch
|
||||
|
||||
public class BrewerySearch : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/search/brewery"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/search/brewery"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -511,7 +511,7 @@ namespace Untappd.Net.Responses.Feeds.ActivityFeed
|
||||
|
||||
public class ActivityFeed : BasicRequest, IAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "/v4/checkin/recent"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "/v4/checkin/recent"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -478,7 +478,7 @@ namespace Untappd.Net.Responses.Feeds.UserActivityFeed
|
||||
|
||||
public class UserActivityFeed : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/user/checkins{0}"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/user/checkins{0}"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -207,7 +207,7 @@ namespace Untappd.Net.Responses.UserBadges
|
||||
/// </summary>
|
||||
public class UserBadges : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/user/badges{0}"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/user/badges{0}"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -225,7 +225,7 @@ namespace Untappd.Net.Responses.UserDistinctBeer
|
||||
|
||||
public class UserDistinctBeers : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/user/beers{0}"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/user/beers{0}"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -136,7 +136,7 @@ namespace Untappd.Net.Responses.UserFriends
|
||||
|
||||
public class UserFriends : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/user/friends{0}"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/user/friends{0}"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -1099,7 +1099,7 @@ namespace Untappd.Net.Responses.UserInfo
|
||||
|
||||
public class UserInfo : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/user/info{0}"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/user/info{0}"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -217,7 +217,7 @@ namespace Untappd.Net.Responses.UserWishlist
|
||||
|
||||
public class UserWishList : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "/v4/user/wishlist{0}"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "/v4/user/wishlist{0}"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
@@ -1193,7 +1193,7 @@ namespace Untappd.Net.Responses.VenueInfo
|
||||
|
||||
public class VenueInfo : BasicRequest, IAuthenticatedRequest, IUnAuthenticatedRequest
|
||||
{
|
||||
protected override string _EndPoint { get { return "v4/venue/info{0}"; } }
|
||||
protected override string EndPointWithConfiguration { get { return "v4/venue/info{0}"; } }
|
||||
|
||||
[JsonProperty("meta")]
|
||||
public Meta Meta { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user