public class

LineFriendshipStatus

extends Object
java.lang.Object
   ↳ com.linecorp.linesdk.LineFriendshipStatus

Class Overview

Represents the friendship status between a bot and a user.

Summary

Public Constructors
LineFriendshipStatus(boolean friendFlag)
Constructs a new LineFriendshipStatus instance.
Public Methods
boolean isFriend()
Gets the friendship status of the user and the bot linked to your LINE Login channel.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LineFriendshipStatus (boolean friendFlag)

Constructs a new LineFriendshipStatus instance.

Parameters
friendFlag Whether the bot is a friend of the user or not.

Public Methods

public boolean isFriend ()

Gets the friendship status of the user and the bot linked to your LINE Login channel.

Returns
  • True if the user has added the bot as a friend and has not blocked the bot; false otherwise.