C# 클래스 ElectroChecker.ElectroClient

파일 보기 프로젝트 열기: HackerDom/ructfe-2015 1 사용 예제들

공개 메소드들

메소드 설명
FindElection ( string host, int port, CookieCollection cookieCollection, string electionId ) : Election
LoginUser ( string host, int port, string login, string pass ) : CookieCollection
Nominate ( string host, int port, CookieCollection cookieCollection, System.Guid electionId ) : Election
NominateAsync ( string host, int port, CookieCollection cookieCollection, System.Guid electionId ) : Task
RegUser ( string host, int port, string login, string pass, string publicMessage = null, string privateNotes = null ) : CookieCollection
RegUserAsync ( string host, int port, string login, string pass, string publicMessage = null, string privateNotes = null ) : Task
StartElection ( string host, int port, CookieCollection cookieCollection, string name, bool isPublic, int nominateDuration, int voteDuration ) : Election
Vote ( string host, int port, CookieCollection cookieCollection, System.Guid electionId, System.Numerics.BigInteger encryptedVector ) : void
VoteAsync ( string host, int port, CookieCollection cookieCollection, System.Guid electionId, System.Numerics.BigInteger encryptedVector ) : System.Threading.Tasks.Task

비공개 메소드들

메소드 설명
CreateRequest ( string url, string method, NameValueCollection headers = null, CookieCollection cookieCollection = null, int timeout = 10000 ) : HttpWebRequest

메소드 상세

FindElection() 공개 정적인 메소드

public static FindElection ( string host, int port, CookieCollection cookieCollection, string electionId ) : Election
host string
port int
cookieCollection System.Net.CookieCollection
electionId string
리턴 Electro.Model.Election

LoginUser() 공개 정적인 메소드

public static LoginUser ( string host, int port, string login, string pass ) : CookieCollection
host string
port int
login string
pass string
리턴 System.Net.CookieCollection

Nominate() 공개 정적인 메소드

public static Nominate ( string host, int port, CookieCollection cookieCollection, System.Guid electionId ) : Election
host string
port int
cookieCollection System.Net.CookieCollection
electionId System.Guid
리턴 Electro.Model.Election

NominateAsync() 공개 정적인 메소드

public static NominateAsync ( string host, int port, CookieCollection cookieCollection, System.Guid electionId ) : Task
host string
port int
cookieCollection System.Net.CookieCollection
electionId System.Guid
리턴 Task

RegUser() 공개 정적인 메소드

public static RegUser ( string host, int port, string login, string pass, string publicMessage = null, string privateNotes = null ) : CookieCollection
host string
port int
login string
pass string
publicMessage string
privateNotes string
리턴 System.Net.CookieCollection

RegUserAsync() 공개 정적인 메소드

public static RegUserAsync ( string host, int port, string login, string pass, string publicMessage = null, string privateNotes = null ) : Task
host string
port int
login string
pass string
publicMessage string
privateNotes string
리턴 Task

StartElection() 공개 정적인 메소드

public static StartElection ( string host, int port, CookieCollection cookieCollection, string name, bool isPublic, int nominateDuration, int voteDuration ) : Election
host string
port int
cookieCollection System.Net.CookieCollection
name string
isPublic bool
nominateDuration int
voteDuration int
리턴 Electro.Model.Election

Vote() 공개 정적인 메소드

public static Vote ( string host, int port, CookieCollection cookieCollection, System.Guid electionId, System.Numerics.BigInteger encryptedVector ) : void
host string
port int
cookieCollection System.Net.CookieCollection
electionId System.Guid
encryptedVector System.Numerics.BigInteger
리턴 void

VoteAsync() 공개 정적인 메소드

public static VoteAsync ( string host, int port, CookieCollection cookieCollection, System.Guid electionId, System.Numerics.BigInteger encryptedVector ) : System.Threading.Tasks.Task
host string
port int
cookieCollection System.Net.CookieCollection
electionId System.Guid
encryptedVector System.Numerics.BigInteger
리턴 System.Threading.Tasks.Task