本文整理汇总了C#中NameCase.ToNCString方法的典型用法代码示例。如果您正苦于以下问题:C# NameCase.ToNCString方法的具体用法?C# NameCase.ToNCString怎么用?C# NameCase.ToNCString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NameCase
的用法示例。
在下文中一共展示了NameCase.ToNCString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetFollowers
public Request<EntityList<User>> GetFollowers(
int? userId = null, UserFields fields = UserFields.Anything, NameCase nameCase = NameCase.Nom, int? offset = null, int? count = 100
) {
var req = new Request<EntityList<User>>{
MethodName = "users.getFollowers",
Parameters = new Dictionary<string, string> {
{ "user_id", MiscTools.NullableString(userId)},
{ "fields", String.Join( ",", MiscTools.GetUserFields( fields ) )},
{ "name_case", nameCase.ToNCString().ToSnake()},
{ "offset", offset.NullableString() },
{ "count", count.NullableString() },
}
};
if (_parent.IsLogged)
req.Token = _parent.CurrentToken;
return req;
}
示例2: GetNearby
public Request<EntityList<User>> GetNearby(
double latitude , double longitude , int? accuracy = null, int? timeout = null, byte? radius = null, UserFields fields = UserFields.None, NameCase nameCase = NameCase.Nom, int? offset = null, int? count = 100
) {
var req = new Request<EntityList<User>>{
MethodName = "users.getNearby",
Parameters = new Dictionary<string, string> {
{ "latitude", latitude.ToNCString()},
{ "longitude", longitude.ToNCString()},
{ "accuracy", MiscTools.NullableString(accuracy)},
{ "timeout", MiscTools.NullableString(timeout)},
{ "radius", MiscTools.NullableString(radius)},
{ "fields", String.Join( ",", MiscTools.GetUserFields( fields ) )},
{ "name_case", nameCase.ToNCString().ToSnake()},
{ "offset", offset.NullableString() },
{ "count", count.NullableString() },
}
};
if (_parent.IsLogged)
req.Token = _parent.CurrentToken;
return req;
}
示例3: Get
public Request<User[]> Get(
UserFields fields = UserFields.None, NameCase nameCase = NameCase.Nom, params string[] userIds
) {
var req = new Request<User[]>{
MethodName = "users.get",
Parameters = new Dictionary<string, string> {
{ "fields", String.Join( ",", MiscTools.GetUserFields( fields ) )},
{ "name_case", nameCase.ToNCString().ToSnake()},
{ "user_ids", String.Join(",",userIds)},
}
};
if (_parent.IsLogged)
req.Token = _parent.CurrentToken;
return req;
}
示例4: GetBannedExtended
public Request<NewsfeedBannedExtended> GetBannedExtended(
UserFields fields = UserFields.None, NameCase nameCase = NameCase.Nom
) {
var req = new Request<NewsfeedBannedExtended>{
MethodName = "newsfeed.getBanned",
Parameters = new Dictionary<string, string> {
{ "fields", String.Join( ",", MiscTools.GetUserFields( fields ) )},
{ "name_case", nameCase.ToNCString().ToSnake()},
{"extended","true"},
}
};
req.Token = _parent.CurrentToken;
return req;
}
示例5: Search
public Request<EntityList<User>> Search(
int userId , string q = "", NameCase nameCase = NameCase.Nom, int? offset = null, int? count = 20
) {
var req = new Request<EntityList<User>>{
MethodName = "friends.search",
Parameters = new Dictionary<string, string> {
{ "user_id", userId.ToNCString()},
{ "q", q},
{ "name_case", nameCase.ToNCString().ToSnake()},
{ "offset", offset.NullableString() },
{ "count", count.NullableString() },
}
};
if (_parent.IsLogged)
req.Token = _parent.CurrentToken;
return req;
}
示例6: GetSuggestions
public Request<EntityList<User>> GetSuggestions(
FriendSuggestionFilters filters = FriendSuggestionFilters.Everything, UserFields fields = UserFields.None, NameCase nameCase = NameCase.Nom, int? offset = null, int? count = 100
) {
var req = new Request<EntityList<User>>{
MethodName = "friends.getSuggestions",
Parameters = new Dictionary<string, string> {
{ "filters", String.Join( ",", MiscTools.GetFilterFields( filters ) )},
{ "fields", String.Join( ",", MiscTools.GetUserFields( fields ) )},
{ "name_case", nameCase.ToNCString().ToSnake()},
{ "offset", offset.NullableString() },
{ "count", count.NullableString() },
}
};
req.Token = _parent.CurrentToken;
return req;
}
示例7: GetAvailableForCall
public Request<EntityList<User>> GetAvailableForCall(
UserFields fields = UserFields.Anything, NameCase nameCase = NameCase.Nom
) {
var req = new Request<EntityList<User>>{
MethodName = "friends.getAvailableForCall",
Parameters = new Dictionary<string, string> {
{ "fields", String.Join( ",", MiscTools.GetUserFields( fields ) )},
{ "name_case", nameCase.ToNCString().ToSnake()},
}
};
if (_parent.IsLogged)
req.Token = _parent.CurrentToken;
return req;
}