C# Class BatchBook.Deal

Datei anzeigen Open project: batchblue/batchbook-net

Public Methods

Method Description
Create ( string title, string description, float amount, string status, int dealWithId, string assignedTo ) : int
Create ( string apiKey, string title, string description, float amount, string status, int dealWithId, string assignedTo ) : int
Destroy ( int dealId ) : void
Destroy ( string apiKey, int dealId ) : void
Get ( int dealId ) : Deal
Get ( string apiKey, int dealId ) : Deal
GetStatuses ( ) : string[]
GetStatuses ( string apiKey ) : string[]
List ( int limit, int offset ) : BatchBook.Deal[]
List ( string apiKey, int limit, int offset ) : BatchBook.Deal[]
Search ( string assignedTo, string status, System.DateTime updatedSince ) : BatchBook.Deal[]
Search ( string apiKey, string assignedTo, string status, System.DateTime updatedSince ) : BatchBook.Deal[]
Update ( int dealId, string title, string description, float amount, string status, int dealWithId, string assignedTo ) : void
Update ( string apiKey, int dealId, string title, string description, float amount, string status, int dealWithId, string assignedTo ) : void

Private Methods

Method Description
BuildList ( XmlReader rdr ) : BatchBook.Deal[]
Deal ( XmlReader rdr ) : System

Method Details

Create() public static method

public static Create ( string title, string description, float amount, string status, int dealWithId, string assignedTo ) : int
title string
description string
amount float
status string
dealWithId int
assignedTo string
return int

Create() public static method

public static Create ( string apiKey, string title, string description, float amount, string status, int dealWithId, string assignedTo ) : int
apiKey string
title string
description string
amount float
status string
dealWithId int
assignedTo string
return int

Destroy() public static method

public static Destroy ( int dealId ) : void
dealId int
return void

Destroy() public static method

public static Destroy ( string apiKey, int dealId ) : void
apiKey string
dealId int
return void

Get() public static method

public static Get ( int dealId ) : Deal
dealId int
return Deal

Get() public static method

public static Get ( string apiKey, int dealId ) : Deal
apiKey string
dealId int
return Deal

GetStatuses() public static method

public static GetStatuses ( ) : string[]
return string[]

GetStatuses() public static method

public static GetStatuses ( string apiKey ) : string[]
apiKey string
return string[]

List() public static method

public static List ( int limit, int offset ) : BatchBook.Deal[]
limit int
offset int
return BatchBook.Deal[]

List() public static method

public static List ( string apiKey, int limit, int offset ) : BatchBook.Deal[]
apiKey string
limit int
offset int
return BatchBook.Deal[]

Search() public static method

public static Search ( string assignedTo, string status, System.DateTime updatedSince ) : BatchBook.Deal[]
assignedTo string
status string
updatedSince System.DateTime
return BatchBook.Deal[]

Search() public static method

public static Search ( string apiKey, string assignedTo, string status, System.DateTime updatedSince ) : BatchBook.Deal[]
apiKey string
assignedTo string
status string
updatedSince System.DateTime
return BatchBook.Deal[]

Update() public static method

public static Update ( int dealId, string title, string description, float amount, string status, int dealWithId, string assignedTo ) : void
dealId int
title string
description string
amount float
status string
dealWithId int
assignedTo string
return void

Update() public static method

public static Update ( string apiKey, int dealId, string title, string description, float amount, string status, int dealWithId, string assignedTo ) : void
apiKey string
dealId int
title string
description string
amount float
status string
dealWithId int
assignedTo string
return void