Files
Untappd.Net/src/Untappd.Net/Responses/Actions/AcceptFriend.cs
2015-09-05 12:32:14 -04:00

23 lines
613 B
C#

using System;
using System.Collections.Generic;
using RestSharp;
using Untappd.Net.Request;
namespace Untappd.Net.Responses.Actions
{
public class AcceptFriend : IAction
{
public Method RequestMethod { get { return Method.GET; } }
public string EndPoint { get; private set; }
public IDictionary<string, object> BodyParameters { get { return new Dictionary<string, object>(); } }
public AcceptFriend(string target_id)
{
if (string.IsNullOrWhiteSpace(target_id))
{
throw new ArgumentNullException("target_id");
}
EndPoint = string.Format("v4/friend/accept/{0}", target_id);
}
}
}