C# Class Care.Tool.RenrenModelConverter

Exibir arquivo Open project: thankcreate/Care

Public Methods

Method Description
ConvertCommentToCommon ( RenrenNews comment ) : CommentViewModel
ConvertRenrenNewsToCommon ( RenrenNews news ) : ItemViewModel
ConvertShareCommentToCommon ( RenrenShareGetCommentsResult comment ) : CommentViewModel
ConvertSharePhoto ( RenrenNews news ) : ItemViewModel
ConvertStatus ( RenrenNews news ) : ItemViewModel
ConvertUploadPhoto ( RenrenNews news ) : ItemViewModel
MakeRenrenComments ( RenrenNews news, ItemViewModel model ) : bool

Method Details

ConvertCommentToCommon() public static method

public static ConvertCommentToCommon ( RenrenNews comment ) : CommentViewModel
comment RenrenNews
return CommentViewModel

ConvertRenrenNewsToCommon() public static method

public static ConvertRenrenNewsToCommon ( RenrenNews news ) : ItemViewModel
news RenrenNews
return ItemViewModel

ConvertShareCommentToCommon() public static method

public static ConvertShareCommentToCommon ( RenrenShareGetCommentsResult comment ) : CommentViewModel
comment RenrenShareGetCommentsResult
return CommentViewModel

ConvertSharePhoto() public static method

public static ConvertSharePhoto ( RenrenNews news ) : ItemViewModel
news RenrenNews
return ItemViewModel

ConvertStatus() public static method

public static ConvertStatus ( RenrenNews news ) : ItemViewModel
news RenrenNews
return ItemViewModel

ConvertUploadPhoto() public static method

public static ConvertUploadPhoto ( RenrenNews news ) : ItemViewModel
news RenrenNews
return ItemViewModel

MakeRenrenComments() public static method

public static MakeRenrenComments ( RenrenNews news, ItemViewModel model ) : bool
news RenrenNews
model ItemViewModel
return bool