UserModel

Description: The UserModel represents an IMVU user.

Fields:

  • UserInfo info - Info about the user. Contains the following fields:
    • string gender - The gender of the user. May be unspecified.
    • string country - The country the user lives in. May be unspecified.
    • string state - The state the user lives in, if they're in the United States. May be unspecified.
    • Uri thumbnailUrl - The URL of the user's profile image.
    • bool online - Whether the user is currently online on IMVU. Note that beging logged into a third party IMVU app does not count for this.
    • string username - The display name of the user.
    • string id - The CID, or customer ID, of the user, which is a unique identifier that will never change.

Methods:

  • Promise<FriendCollection> GetFriends(int? limit = null) - Get the user's friends. The optional limit argument specifies the page size.
  • Promise<OutfitCollection> GetOutfits(int? limit = null) - Get the user's saved outfits. The optional limit argument specifies the page size.
  • Promise<ProductCollection> GetCurrentLook(int? limit = null) - Get the product list of the user's current look. The optional limit argument specifies the page size.
  • Promise<ProductCollection> GetProfileLook(int? limit = null) - Get the product list of the user's profile look. The optional limit argument specifies the page size.
  • Promise<FeedElementCollection> GetPersonalFeed(int? limit = null) - Get the list of feed posts in the user's personal feed, which is all the posts the user has made themselves. The optional limit argument specifies the page size.
  • Promise<FeedElementCollection> GetSubscribedFeed(int? limit = null) - Get the list of feed posts in the user's subscribed feed, which is all the posts made by their friends. The optional limit argument specifies the page size.
  • Promise<FeedElementCollection> GetRecommendedFeed(int? limit = null) - Get the list of feed posts in the user's recommended feed, which is a feed curated by IMVU to contain high quality posts. The optional limit argument specifies the page size.
  • Promise<WalletModel> GetWallet() - Get the user's wallet, which contains their credit total.
  • bool IsMarried() - Return true if the user has purchased an IMVU marriage package and it's been accepted.
  • Promise<UserModel> GetSpouse() - If the user has purchased an IMVU marriage package that's been accepted, get the UserModel of the user's spouse.
  • Promise<Unit> SendMessage(string inviteToken, string defaultMessage) - Send a message on the IMVU website to this user from the logged-in user. Returns a Promise to an empty object. This will generate a call-out to the website, to confirm the user's intent to send the message. See the Messaging section for more details.