当前位置: 首页>>代码示例>>C#>>正文


C# NameCase.ToNCString方法代码示例

本文整理汇总了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;
            }
开发者ID:kasthack,项目名称:kasthack.vksharp,代码行数:19,代码来源:RequestApi1.cs

示例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;
            }
开发者ID:kasthack,项目名称:kasthack.vksharp,代码行数:23,代码来源:RequestApi1.cs

示例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;
            }
开发者ID:kasthack,项目名称:kasthack.vksharp,代码行数:17,代码来源:RequestApi1.cs

示例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;
            }
开发者ID:kasthack,项目名称:kasthack.vksharp,代码行数:16,代码来源:RequestApi1.cs

示例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;
            }
开发者ID:kasthack,项目名称:kasthack.vksharp,代码行数:19,代码来源:RequestApi1.cs

示例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;
            }
开发者ID:kasthack,项目名称:kasthack.vksharp,代码行数:18,代码来源:RequestApi1.cs

示例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;
            }
开发者ID:kasthack,项目名称:kasthack.vksharp,代码行数:16,代码来源:RequestApi1.cs


注:本文中的NameCase.ToNCString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。