IProfilePictureService Interface
Namespace: PTS.Modules.ProfilePictureAggregate.Domain
Assembly: PTS.Modules.ProfilePictureAggregate.dll
Syntax
public interface IProfilePictureService
Methods
GetPicture(Profile, PictureType)
Gets the Picture for profile
.
Declaration
Picture GetPicture(Profile profile, PictureType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
PictureType | type | The type. |
Returns
Type | Description |
---|---|
Picture | The Picture. |
GetPictureAsync(Profile, PictureType)
Gets the Picture for profile
.
Declaration
Task<Picture> GetPictureAsync(Profile profile, PictureType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
PictureType | type | The type. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Picture> | The System.Threading.Tasks.Task with result of Picture. |
GetPictures(Profile)
Gets the System.Collections.Generic.List<T> collection for profile
.
Declaration
List<Picture> GetPictures(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Picture> | The collection of Picture. |
GetPicturesAsync(Profile)
Gets the System.Collections.Generic.List<T> collection for profile
.
Declaration
Task<List<Picture>> GetPicturesAsync(Profile profile)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.List<Picture>> | The System.Threading.Tasks.Task with result of collection of Picture. |
SetPicture(Profile, Picture, PictureType)
Sets the Picture for profile
with type
.
Declaration
ProfilePicture SetPicture(Profile profile, Picture picture, PictureType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Picture | picture | The picture. |
PictureType | type | The type. |
Returns
Type | Description |
---|---|
ProfilePicture | The ProfilePicture. |
SetPictureAsync(Profile, Picture, PictureType)
Sets the Picture for profile
with type
.
Declaration
Task<ProfilePicture> SetPictureAsync(Profile profile, Picture picture, PictureType type)
Parameters
Type | Name | Description |
---|---|---|
Profile | profile | The profile. |
Picture | picture | The picture. |
PictureType | type | The type. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ProfilePicture> | The System.Threading.Tasks.Task with result of ProfilePicture. |