You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Profile page of users. Includes basic user info plus followers and events hosted by the user:
Variables
model.user: UserThis variable should be a User object containing all the info of the user whose profile is being displayed.
Functions
model.createUser(String uid)->UserThis 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)->boolThis function is supposed to return whether the current user is already following the given user or not (boolean).
model.shareButton(String uid)->voidThis 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)->voidThis function is supposed to navigate to a page full of all of the followers of a given user id.
model.viewAllEvents(String uid)->voidThis function is supposed to navigate to a page full of all of the events hosted by a given user id.
model.goToUserProfile(String uid)->voidThis 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)->voidThis function is supposed to navigate to the event details page when users click on the event tile.