Contacts Bloc

Contacts are a core part of TestFast — the very reason TestFast exists is so you can make apps that facilitate social interactions with your contacts. On this page, we'll dive into the different ways you can use contacts with TestFast.

The user model

The user model contains all the information about your users, such as their username, profile picture url, and phone number.

Properties

  • Name
    id
    Type
    int
    Description

    Unique identifier for the user.

  • Name
    uuid
    Type
    string
    Description

    Another unique identifier for the user.

  • Name
    phone_number
    Type
    string
    Description

    The phone number for the contact.

  • Name
    profile_picture_url
    Type
    string
    Description

    The avatar image URL for the contact.

  • Name
    user_name
    Type
    string
    Description

    The user name for the user. One is generated from the stored procedures if the user does not set this.

  • Name
    first_name
    Type
    string
    Description

    The user's first name.

  • Name
    last_name
    Type
    string
    Description

    The user's last name.

  • Name
    blocked_numbers
    Type
    Array<string>
    Description

    An array of blocked numbers for this user. When a user blocks someone else, the number they blocked goes here. TestFast is adding support for this soon

  • Name
    gender
    Type
    string
    Description

    Should you choose to collect this info, this is the gender of the user. Male, Female, or Nonbinary.

  • Name
    push_token
    Type
    string
    Description

    Storing a push token can be useful for sending push notifications to the user's device. TestFast is adding support for this soon.

  • Name
    friend_count
    Type
    string
    Description

    For displaying on the user's profile. There is a stored procedure for incrementing this.

  • Name
    created_at
    Type
    timestamp
    Description

    Timestamp of when the contact was created.

  • Name
    HIDDEN: contact
    Type
    timestamp
    Description

    Used for differentiating a contact from a user in the framework.

  • Name
    HIDDEN: mutual_friends
    Type
    timestamp
    Description

    Used for ranking users in the User interface.

Was this page helpful?