Skip to content

ProfileScreen view model request #6

@ejlam

Description

@ejlam

Profile page of users. Includes basic user info plus followers and events hosted by the user:

Variables

  • model.user: User
    This variable should be a User object containing all the info of the user whose profile is being displayed.

Functions

  • model.createUser(String uid) -> User
    This function is supposed to create a User object from a given user id. Return User created.

  • model.followUser(String uid) -> Future<bool>
    This function is supposed to add the given user id to the current user's following list. Return whether the process was successful or not (boolean).

  • model.unfollowUser(String uid) -> Future<bool>
    This function is supposed to remove the given user id from the current user's following list. Return whether the process was successful or not (boolean).

  • model.isFollowing(String uid) -> bool
    This function is supposed to return whether the current user is already following the given user or not (boolean).

  • model.shareButton(String uid) -> void
    This function is supposed to allow users to share a profile page. I don't know what api is going to be used yet, so I'm not sure on specifics.

  • model.viewAllFollowers(String uid) -> void
    This function is supposed to navigate to a page full of all of the followers of a given user id.

  • model.viewAllEvents(String uid) -> void
    This function is supposed to navigate to a page full of all of the events hosted by a given user id.

  • model.goToUserProfile(String uid) -> void
    This function is supposed to navigate to the profile page of another user when users click on a person's profile pic.

  • model.goToEventDetails(String eventid) -> void
    This function is supposed to navigate to the event details page when users click on the event tile.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions