ActionLog class
ActionLog
액션 모델은, 사용자의 활동을 기록하는 모델이다. Fireship 의 적절한 위치에서 이 모델의 userProfileView, chatJoin, postCreate, commentCreate 등의 함수를 호출하여 사용자의 활동을 기록하면 된다.
Constructors
Properties
- category → String?
-
category 는 게시판의 경우만 필요하다. key 가 게시판의 id 이다.
final
- createdAt → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
Member Variables
final
- postId → String?
-
postId 는 코멘트의 경우만 필요하다. key 가 코멘트의 id 이다.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- chatJoinPath → String
-
no setter
- chatJoinRef → DatabaseReference
-
no setter
- commentCreatePath → String
-
no setter
- commentCreateRef → DatabaseReference
-
no setter
- postCreatePath → String
-
no setter
- postCreateRef → DatabaseReference
-
no setter
- ref → DatabaseReference
-
no setter
- root → DatabaseReference
-
no setter
- userProfileViewPath → String
-
no setter
- userProfileViewRef → DatabaseReference
-
no setter
Static Methods
-
categoryCreateRef(
String category) → dynamic -
chatJoin(
String roomId) → Future< void> - Create a new action log for chat join
-
chatJoinExists(
String roomId) → Future< bool> - Check if the chat join exists
-
commentCreate(
{required String postId, required String commentId}) → Future< void> - Create a new action log for comment creation
-
postCreate(
{required String category, required String postId}) → Future< void> - Create a new action log for post creation
-
userProfileView(
String otherUserUid) → Future< void> - Create a new action log for user profiel view
-
userProfileViewExists(
String otherUserUid) → Future< bool> - Check if the user profile view exists