C# 클래스 CSharpTradeOffers.Trading.EconServiceHandler

Handles EconService related tasks such as trade offers.
파일 보기 프로젝트 열기: FatherFoxxy/CSharpTradeOffers 1 사용 예제들

공개 메소드들

메소드 설명
AcceptTradeOffer ( uint tradeId, uint partnerId, CookieContainer container, string serverid ) : CSharpTradeOffers.Trading.Trade

Accepts a specified trade offer.

CancelTradeOffer ( ulong tradeofferid ) : string

Cancels a trade offer based on the specified tradeofferid.

DeclineTradeOffer ( ulong tradeofferid ) : string

Declines a trade offer that was sent to you.

EconServiceHandler ( string apiKey ) : System
EmailConfirmSendOffer ( uint accountId, uint tradeOfferId, ulong confirmationCode, string mId ) : void

Accepts an email-confirmation

GetTradeOffer ( ulong tradeofferid, string language = "english" ) : CSharpTradeOffers.Trading.CEconTradeOffer

Requests a single trade offer based on the tradeofferid.

GetTradeOffers ( string>.Dictionary data ) : CSharpTradeOffers.Trading.TradeOffersList

Requests all trade offers.

GetTradeOffersSummary ( uint timeLastVisit ) : CSharpTradeOffers.Trading.GetTradeOffersSummaryResponse

Requestss TradeOffer statistics. ie: historical_received_count

ModifyTradeOffer ( ulong partnerSid, string tradeoffermessage, string serverid, uint tradeofferidCountered, CSharpTradeOffers.Trading.TradeOffer offer, CookieContainer container ) : SendOfferResponse

Modifies an existing trade offer.

SendTradeOffer ( ulong partnerSid, string tradeoffermessage, string serverid, CSharpTradeOffers.Trading.TradeOffer offer, CookieContainer container ) : SendOfferResponse

Sends a trade offer to the specified recipient.

SendTradeOfferWithLink ( ulong partnerSid, string token, string tradeoffermessage, string serverid, CSharpTradeOffers.Trading.TradeOffer offer, CookieContainer container ) : SendOfferResponse

Sends a trade offer to the specified recipient that's not on your friends list using the trade url. If is not the case, use SendTradeOffer function.

메소드 상세

AcceptTradeOffer() 공개 메소드

Accepts a specified trade offer.
public AcceptTradeOffer ( uint tradeId, uint partnerId, CookieContainer container, string serverid ) : CSharpTradeOffers.Trading.Trade
tradeId uint A ulong representing the trade to accept.
partnerId uint The AccountId of the person to trade with.
container System.Net.CookieContainer Auth Cookies MUST be passed here, the function will fail if not.
serverid string Almost always 1, not quite sure what other numbers do.
리턴 CSharpTradeOffers.Trading.Trade

CancelTradeOffer() 공개 메소드

Cancels a trade offer based on the specified tradeofferid.
public CancelTradeOffer ( ulong tradeofferid ) : string
tradeofferid ulong The ID of the offer to cancel.
리턴 string

DeclineTradeOffer() 공개 메소드

Declines a trade offer that was sent to you.
public DeclineTradeOffer ( ulong tradeofferid ) : string
tradeofferid ulong The ID of the offer to decline.
리턴 string

EconServiceHandler() 공개 메소드

public EconServiceHandler ( string apiKey ) : System
apiKey string
리턴 System

EmailConfirmSendOffer() 공개 메소드

Accepts an email-confirmation
public EmailConfirmSendOffer ( uint accountId, uint tradeOfferId, ulong confirmationCode, string mId ) : void
accountId uint Your accountId
tradeOfferId uint Trade offer id of the offer to confirm
confirmationCode ulong Confirmation code
mId string No idea, but it looks something like: wiGVgcpbphpfTU5vDzD9uIwqtGlG8_QaWJqNmq5dOW3P3
리턴 void

GetTradeOffer() 공개 메소드

Requests a single trade offer based on the tradeofferid.
public GetTradeOffer ( ulong tradeofferid, string language = "english" ) : CSharpTradeOffers.Trading.CEconTradeOffer
tradeofferid ulong The tradeofferid to request information on.
language string The language to use. Default: english
리턴 CSharpTradeOffers.Trading.CEconTradeOffer

GetTradeOffers() 공개 메소드

Requests all trade offers.
public GetTradeOffers ( string>.Dictionary data ) : CSharpTradeOffers.Trading.TradeOffersList
data string>.Dictionary A dictionary containing the URL params found here: https://developer.valvesoftware.com/wiki/Steam_Web_API/IEconService at GetTradeOffers (v1). /// ex: [leftarrow]"get_sent_offers","1"[rightarrow]. Please note, [leftarrow] and [rightarrow] correspond to the keys on the keyboard.
리턴 CSharpTradeOffers.Trading.TradeOffersList

GetTradeOffersSummary() 공개 메소드

Requestss TradeOffer statistics. ie: historical_received_count
public GetTradeOffersSummary ( uint timeLastVisit ) : CSharpTradeOffers.Trading.GetTradeOffersSummaryResponse
timeLastVisit uint Unix time for historical cutoff.
리턴 CSharpTradeOffers.Trading.GetTradeOffersSummaryResponse

ModifyTradeOffer() 공개 메소드

Modifies an existing trade offer.
public ModifyTradeOffer ( ulong partnerSid, string tradeoffermessage, string serverid, uint tradeofferidCountered, CSharpTradeOffers.Trading.TradeOffer offer, CookieContainer container ) : SendOfferResponse
partnerSid ulong The SteamId64 (ulong) of the person whose offer will be modified.
tradeoffermessage string An otpional message to be sent with the trade offer. Can be null.
serverid string Almost always 1, not quite sure what other numbers do.
tradeofferidCountered uint The TradeId of the offer to counter or modify.
offer CSharpTradeOffers.Trading.TradeOffer A TradeOffer object containing the trade parameters.
container System.Net.CookieContainer Auth Cookies MUST be passed here, the function will fail if not.
리턴 SendOfferResponse

SendTradeOffer() 공개 메소드

Sends a trade offer to the specified recipient.
public SendTradeOffer ( ulong partnerSid, string tradeoffermessage, string serverid, CSharpTradeOffers.Trading.TradeOffer offer, CookieContainer container ) : SendOfferResponse
partnerSid ulong The SteamId64 (ulong) of the person to send the offer to.
tradeoffermessage string An optional message to be sent with the offer. Can be null.
serverid string Almost always 1, not quite sure what other numbers do.
offer CSharpTradeOffers.Trading.TradeOffer A TradeOffer object containing the trade parameters.
container System.Net.CookieContainer Auth Cookies MUST be passed here, the function will fail if not.
리턴 SendOfferResponse

SendTradeOfferWithLink() 공개 메소드

Sends a trade offer to the specified recipient that's not on your friends list using the trade url. If is not the case, use SendTradeOffer function.
public SendTradeOfferWithLink ( ulong partnerSid, string token, string tradeoffermessage, string serverid, CSharpTradeOffers.Trading.TradeOffer offer, CookieContainer container ) : SendOfferResponse
partnerSid ulong The SteamId64 (ulong) of the person to send the offer to.
token string The token part from the recipient's trade url. Example: a1b2cdEF
tradeoffermessage string An optional message to be sent with the offer. Can be null.
serverid string Almost always 1, not quite sure what other numbers do.
offer CSharpTradeOffers.Trading.TradeOffer A TradeOffer object containing the trade parameters.
container System.Net.CookieContainer Auth Cookies MUST be passed here, the function will fail if not.
리턴 SendOfferResponse