C# Class Foretagsplatsen.Api2.Resources.CompanyCommentResource

Show file Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Public Methods

Method Description
CompanyCommentResource ( ApiClient client, CompanyInfo company ) : System
CompanyCommentResource ( ApiClient client, string companyId ) : System
Create ( Comment comment ) : Comment
Delete ( Comment comment ) : void
Delete ( string commentId ) : void
Get ( Comment comment ) : Comment
Get ( string commentId ) : Comment
List ( ) : List
Update ( Comment comment ) : Comment

Private Methods

Method Description
CreateComment ( JToken obj ) : Comment
GetUrl ( string commentId = "" ) : string

Method Details

CompanyCommentResource() public method

public CompanyCommentResource ( ApiClient client, CompanyInfo company ) : System
client ApiClient
company Foretagsplatsen.Api2.Entities.Company.CompanyInfo
return System

CompanyCommentResource() public method

public CompanyCommentResource ( ApiClient client, string companyId ) : System
client ApiClient
companyId string
return System

Create() public method

public Create ( Comment comment ) : Comment
comment Foretagsplatsen.Api2.Entities.Comments.Comment
return Foretagsplatsen.Api2.Entities.Comments.Comment

Delete() public method

public Delete ( Comment comment ) : void
comment Foretagsplatsen.Api2.Entities.Comments.Comment
return void

Delete() public method

public Delete ( string commentId ) : void
commentId string
return void

Get() public method

public Get ( Comment comment ) : Comment
comment Foretagsplatsen.Api2.Entities.Comments.Comment
return Foretagsplatsen.Api2.Entities.Comments.Comment

Get() public method

public Get ( string commentId ) : Comment
commentId string
return Foretagsplatsen.Api2.Entities.Comments.Comment

List() public method

public List ( ) : List
return List

Update() public method

public Update ( Comment comment ) : Comment
comment Foretagsplatsen.Api2.Entities.Comments.Comment
return Foretagsplatsen.Api2.Entities.Comments.Comment