NeedsGqlRepository class Null safety
Constructors
- NeedsGqlRepository(GraphQLClient graphQLClient, Logger? logger)
Properties
- graphQLClient → GraphQLClient
-
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- logger → Logger?
-
final
-
needsUpdateStream
→ Stream<
BuiltList< StreamUpdate< >Need> > -
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
acceptSupportForNeed(
Need need, User acceptedUser) → Future< Need?> -
Accept a contact User for being the supporter of the
NeedReturns the updated need with its NeedInvitationStatus updated -
cancelNeed(
Need need) → Future< bool> - Cancels a Need as originator
-
cancelSupportForNeed(
Need need) → Future< Need?> -
Cancel the support of the current User to the
NeedReturns the updated need with its NeedInvitationStatus updated -
createNeed(
LocalizedType< NeedType> needType, Instant startDate, Instant endDate) → Future<Need?> -
Creates a new need to a given needType. Returns the
Needthat was sent on success, null on error. Note that the returnedNeedhas the NeedInvitation of all the participants. -
dispose(
) → Future< void> -
getAllNeedTypes(
) → Future< BuiltSet< LocalizedType< >NeedType> > - Retrieve all needs types which the user could request
-
getNeed(
{required String id}) → Future< Need?> -
Retrieves a single need by
id. Returnsnullif need is not found. -
getNeeds(
{required Instant fromDate, required Instant endDate}) → Future< BuiltList< Need> > - Retrieve all needs entries between two dates. Note that the returned Need has the invitation for all participants of the event only when the originator User is the same of the User which does the query. If is a different User, only will return the NeedInvitation of the originator User and the User which does the query. states==null || states.len==0, will retrieve all needs entries independing of the invitation status of the user states!=null && states.len!=0, only will retrieve needs which their invitation status for the user match with any of the target statuses
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
offerSupportForNeed(
Need need) → Future< Need?> -
Offser support of the current User to the
NeedReturns the updated need with its NeedInvitationStatus updated -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited