C# Класс CSharpTradeOffers.Community.CommunityHandler

Handles commmunity related tasks
Показать файл Открыть проект

Открытые методы

Метод Описание
AcceptFriendRequest ( ulong steamId ) : bool

Accepts a friend request.

AddFriend ( ulong steamId ) : CSharpTradeOffers.Community.AddFriendResponse

Sends a friend request to the specified user.

CommunityHandler ( Account account ) : System
DeleteTopic ( ulong forumId, ulong topicId ) : CSharpTradeOffers.Community.DefaultResult
DeleteTopicComment ( ulong commentId, ulong topicId, ulong forumId, ulong groupId, CSharpTradeOffers.Community.ForumInfo forumInfo, ulong start, ulong count = 15, bool oldestFirst = false, bool includeRawComments = false ) : CSharpTradeOffers.Community.DeleteTopicCommentResult

Used to delete a comment

EditTopic ( string title, string text, ulong forumId, ulong topicId ) : CSharpTradeOffers.Community.DefaultResult
GetProfileComments ( ulong steamId, int totalCount, int count, int start ) : GetCommentsResponse

Gets the profile comments of the specified SteamId64

GetTopicsHtml ( ulong forumId, ulong start, ulong count ) : CSharpTradeOffers.Community.GetTopicsHtmlResult
GroupAnnounce ( string groupName, string headLine, string body ) : IResponse

Posts an announcement to the specified group.

GroupEvent ( string groupName, string eventName, string eventNotes, string eventType, System.DateTime startDateAndTime, string timeChoice = "quick", string serverPassword = "", IPAddress serverAddress = null, int appId = -1, int timezoneOffset = -18000 ) : IResponse

Posts an event to the specified group.

InviteUserToGroup ( ulong steamId, bool json, ulong group ) : CSharpTradeOffers.Community.InviteResponse

Invites the specified user to a group.

InviteUsersToGroup ( ulong steamIds, bool json, ulong group ) : CSharpTradeOffers.Community.MultiInviteResponse

Invites the specified users to a group.

JoinGroup ( string groupName ) : IResponse

Join a public group.

LeaveGroup ( ulong groupId ) : IResponse

Leave a group.

ModerateTopic ( string action, string flag, bool value, ulong forumId, ulong topicId ) : CSharpTradeOffers.Community.ModerateTopicResult
PostClanComment ( ulong clanId, string comment, int count ) : CSharpTradeOffers.Community.ClanCommentResponse

Posts a comment to the specified clan.

PostComment ( ulong steamId, string comment ) : CSharpTradeOffers.Community.CommentResponse

Posts a comment to the specified profile.

RemoveFriend ( ulong steamId ) : bool

Removes a friend.

RequestAllMemberLists ( string groupName, int retryWait, int retryCount = 10 ) : List

Requests group information as well as the all pages of users.

RequestAllMemberLists ( ulong groupId, int retryWait, int retryCount = 10 ) : List

Requests group information as well as all pages of users.

RequestMemberList ( string groupName ) : CSharpTradeOffers.Community.MemberList

Requests group information as well as the first page of users.

RequestMemberList ( ulong groupId ) : CSharpTradeOffers.Community.MemberList

Requests group information as well as the first page of users.

SetPrivacySettings ( PrivacySettings settings, Account account ) : void

Sets the privacy settings of the account.

SetProfile ( Profile profile, Account account ) : bool

Sets the user's public profile settings to the exact settings specified in the Profile object.

Приватные методы

Метод Описание
ToJArray ( IEnumerable items ) : string

Converts an array of SteamId64s to an array of the format ["0","1"]

Описание методов

AcceptFriendRequest() публичный Метод

Accepts a friend request.
public AcceptFriendRequest ( ulong steamId ) : bool
steamId ulong SteamId64 of the person who sent the request.
Результат bool

AddFriend() публичный Метод

Sends a friend request to the specified user.
public AddFriend ( ulong steamId ) : CSharpTradeOffers.Community.AddFriendResponse
steamId ulong SteamId64 of the user to add.
Результат CSharpTradeOffers.Community.AddFriendResponse

CommunityHandler() публичный Метод

public CommunityHandler ( Account account ) : System
account CSharpTradeOffers.Web.Account
Результат System

DeleteTopic() публичный Метод

public DeleteTopic ( ulong forumId, ulong topicId ) : CSharpTradeOffers.Community.DefaultResult
forumId ulong
topicId ulong
Результат CSharpTradeOffers.Community.DefaultResult

DeleteTopicComment() публичный Метод

Used to delete a comment
public DeleteTopicComment ( ulong commentId, ulong topicId, ulong forumId, ulong groupId, CSharpTradeOffers.Community.ForumInfo forumInfo, ulong start, ulong count = 15, bool oldestFirst = false, bool includeRawComments = false ) : CSharpTradeOffers.Community.DeleteTopicCommentResult
commentId ulong The id of the comment
topicId ulong The id of the topic
forumId ulong The id of the forum
groupId ulong
forumInfo CSharpTradeOffers.Community.ForumInfo
start ulong Use if includeRawComments is set. This will specify the comment # to start at.
count ulong The number of comments to grab if includeRawComments is set.
oldestFirst bool Order of the comments
includeRawComments bool Include the comments or not
Результат CSharpTradeOffers.Community.DeleteTopicCommentResult

EditTopic() публичный Метод

public EditTopic ( string title, string text, ulong forumId, ulong topicId ) : CSharpTradeOffers.Community.DefaultResult
title string
text string
forumId ulong
topicId ulong
Результат CSharpTradeOffers.Community.DefaultResult

GetProfileComments() публичный Метод

Gets the profile comments of the specified SteamId64
public GetProfileComments ( ulong steamId, int totalCount, int count, int start ) : GetCommentsResponse
steamId ulong SteamId of the profile to get comments from
totalCount int Number of comments to retrieve
count int The number of comments previously retrieved
start int Starting index
Результат GetCommentsResponse

GetTopicsHtml() публичный Метод

public GetTopicsHtml ( ulong forumId, ulong start, ulong count ) : CSharpTradeOffers.Community.GetTopicsHtmlResult
forumId ulong
start ulong
count ulong
Результат CSharpTradeOffers.Community.GetTopicsHtmlResult

GroupAnnounce() публичный Метод

Posts an announcement to the specified group.
public GroupAnnounce ( string groupName, string headLine, string body ) : IResponse
groupName string Groupname of the steam group.
headLine string The headline of the announcement.
body string The body of the announcement.
Результат IResponse

GroupEvent() публичный Метод

Posts an event to the specified group.
public GroupEvent ( string groupName, string eventName, string eventNotes, string eventType, System.DateTime startDateAndTime, string timeChoice = "quick", string serverPassword = "", IPAddress serverAddress = null, int appId = -1, int timezoneOffset = -18000 ) : IResponse
groupName string Groupname of the steam group.
eventName string The name of the event.
eventNotes string The notes of the event.
eventType string
startDateAndTime System.DateTime
timeChoice string "quick" which means now, or "specific" which means will start at the given date/time.
serverPassword string Password to the server.
serverAddress System.Net.IPAddress
appId int
timezoneOffset int
Результат IResponse

InviteUserToGroup() публичный Метод

Invites the specified user to a group.
public InviteUserToGroup ( ulong steamId, bool json, ulong group ) : CSharpTradeOffers.Community.InviteResponse
steamId ulong The SteamId64 of the person to invite.
json bool I forgot... oops.
group ulong The SteamId64 of the group to invite to.
Результат CSharpTradeOffers.Community.InviteResponse

InviteUsersToGroup() публичный Метод

Invites the specified users to a group.
public InviteUsersToGroup ( ulong steamIds, bool json, ulong group ) : CSharpTradeOffers.Community.MultiInviteResponse
steamIds ulong The SteamId64s of the users to invite.
json bool I forgot... oops.
group ulong The SteamId64 of the group to invite the users to.
Результат CSharpTradeOffers.Community.MultiInviteResponse

JoinGroup() публичный Метод

Join a public group.
public JoinGroup ( string groupName ) : IResponse
groupName string The name of the group found in the group url.
Результат IResponse

LeaveGroup() публичный Метод

Leave a group.
public LeaveGroup ( ulong groupId ) : IResponse
groupId ulong The GroupID of the steam group.
Результат IResponse

ModerateTopic() публичный Метод

public ModerateTopic ( string action, string flag, bool value, ulong forumId, ulong topicId ) : CSharpTradeOffers.Community.ModerateTopicResult
action string
flag string
value bool
forumId ulong
topicId ulong
Результат CSharpTradeOffers.Community.ModerateTopicResult

PostClanComment() публичный Метод

Posts a comment to the specified clan.
public PostClanComment ( ulong clanId, string comment, int count ) : CSharpTradeOffers.Community.ClanCommentResponse
clanId ulong SteamID64 of the clan to post the comment to.
comment string The comment to post.
count int Almost certainly useless and never needs to be touched. /// I assume that it is the member count but it can be null, non-existant, or any number under the sun.
Результат CSharpTradeOffers.Community.ClanCommentResponse

PostComment() публичный Метод

Posts a comment to the specified profile.
public PostComment ( ulong steamId, string comment ) : CSharpTradeOffers.Community.CommentResponse
steamId ulong The SteamId64 of the profile to post to.
comment string The comment text.
Результат CSharpTradeOffers.Community.CommentResponse

RemoveFriend() публичный Метод

Removes a friend.
public RemoveFriend ( ulong steamId ) : bool
steamId ulong SteamId64 of the friend to remove.
Результат bool

RequestAllMemberLists() публичный Метод

Requests group information as well as the all pages of users.
public RequestAllMemberLists ( string groupName, int retryWait, int retryCount = 10 ) : List
groupName string The name of the group to request information about.
retryWait int The number of miliseconds to wait between each retry.
retryCount int The number of times to retry before inserting a null MemberList object.
Результат List

RequestAllMemberLists() публичный Метод

Requests group information as well as all pages of users.
public RequestAllMemberLists ( ulong groupId, int retryWait, int retryCount = 10 ) : List
groupId ulong The SteamId64 of the group to request information about.
retryWait int The number of miliseconds to wait between each retry.
retryCount int The number of times to retry before inserting a null MemberList object.
Результат List

RequestMemberList() публичный Метод

Requests group information as well as the first page of users.
public RequestMemberList ( string groupName ) : CSharpTradeOffers.Community.MemberList
groupName string The name of the group to request information about.
Результат CSharpTradeOffers.Community.MemberList

RequestMemberList() публичный Метод

Requests group information as well as the first page of users.
public RequestMemberList ( ulong groupId ) : CSharpTradeOffers.Community.MemberList
groupId ulong The SteamId64 of the group to request information about.
Результат CSharpTradeOffers.Community.MemberList

SetPrivacySettings() публичный Метод

Sets the privacy settings of the account.
public SetPrivacySettings ( PrivacySettings settings, Account account ) : void
settings PrivacySettings Settings to set.
account CSharpTradeOffers.Web.Account Account of settings to change.
Результат void

SetProfile() публичный Метод

Sets the user's public profile settings to the exact settings specified in the Profile object.
public SetProfile ( Profile profile, Account account ) : bool
profile Profile The object to specify the new profile data.
account CSharpTradeOffers.Web.Account The account of the profile to modify.
Результат bool