test_class.declarator: protocol
test_class.modifier: private static
test_class.original_string: private static CapsuleToyProtocol protocol;
test_class.type: CapsuleToyProtocol
test_class.var_name: protocol
test_class.file: BiliLiveLib/src/test/java/charlie/bililivelib/capsuletoy/CapsuleToyProtocolTest.java
test_class.identifier: CapsuleToyProtocolTest
test_case.body: @Test
      public void aGetInfo() throws Exception {
          System.out.println(protocol.getCapsuleToyInfo());
      }
test_case.class_method_signature: CapsuleToyProtocolTest.aGetInfo()
test_case.full_signature: @Test public void aGetInfo()
test_case.identifier: aGetInfo
test_case.invocations: println getCapsuleToyInfo
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void aGetInfo()
focal_class.declarator: CAPSULE_OPEN_POST = "/api/ajaxCapsuleOpen"
focal_class.modifier: private static final
focal_class.original_string: private static final String CAPSULE_OPEN_POST = "/api/ajaxCapsuleOpen";
focal_class.type: String
focal_class.var_name: CAPSULE_OPEN_POST
focal_class.declarator: CAPSULE_INFO_GET = "/api/ajaxCapsule"
focal_class.modifier: private static final
focal_class.original_string: private static final String CAPSULE_INFO_GET = "/api/ajaxCapsule";
focal_class.type: String
focal_class.var_name: CAPSULE_INFO_GET
focal_class.declarator: EXCEPTION_KEY = "exception.capsule_toy"
focal_class.modifier: private static final
focal_class.original_string: private static final String EXCEPTION_KEY = "exception.capsule_toy";
focal_class.type: String
focal_class.var_name: EXCEPTION_KEY
focal_class.declarator: STATUS_NOT_LOGGED_IN = -101
focal_class.modifier: private static final
focal_class.original_string: private static final int STATUS_NOT_LOGGED_IN = -101;
focal_class.type: int
focal_class.var_name: STATUS_NOT_LOGGED_IN
focal_class.declarator: STATUS_SUCCESS = 0
focal_class.modifier: private static final
focal_class.original_string: private static final int STATUS_SUCCESS = 0;
focal_class.type: int
focal_class.var_name: STATUS_SUCCESS
focal_class.declarator: STATUS_NOT_ENOUGH = -500
focal_class.modifier: private static final
focal_class.original_string: private static final int STATUS_NOT_ENOUGH = -500;
focal_class.type: int
focal_class.var_name: STATUS_NOT_ENOUGH
focal_class.declarator: TOKEN_COOKIE_KEY = "LIVE_LOGIN_DATA"
focal_class.modifier: private static final
focal_class.original_string: private static final String TOKEN_COOKIE_KEY = "LIVE_LOGIN_DATA";
focal_class.type: String
focal_class.var_name: TOKEN_COOKIE_KEY
focal_class.declarator: session
focal_class.modifier: private
focal_class.original_string: private Session session;
focal_class.type: Session
focal_class.var_name: session
focal_class.file: BiliLiveLib/src/main/java/charlie/bililivelib/capsuletoy/CapsuleToyProtocol.java
focal_class.identifier: CapsuleToyProtocol
focal_class.class_method_signature: CapsuleToyProtocol.CapsuleToyProtocol(@NotNull Session session)
focal_class.full_signature: public  CapsuleToyProtocol(@NotNull Session session)
focal_class.identifier: CapsuleToyProtocol
focal_class.modifiers: public
focal_class.parameters: (@NotNull Session session)
focal_class.signature:  CapsuleToyProtocol(@NotNull Session session)
focal_class.class_method_signature: CapsuleToyProtocol.openNormal(@MagicConstant(intValues = {1, 10, 100}) int count)
focal_class.full_signature: public OpenCapsuleToyInfo openNormal(@MagicConstant(intValues = {1, 10, 100}) int count)
focal_class.identifier: openNormal
focal_class.modifiers: public
focal_class.parameters: (@MagicConstant(intValues = {1, 10, 100}) int count)
focal_class.return: OpenCapsuleToyInfo
focal_class.signature: OpenCapsuleToyInfo openNormal(@MagicConstant(intValues = {1, 10, 100}) int count)
focal_class.class_method_signature: CapsuleToyProtocol.openColorful(@MagicConstant(intValues = {1, 10, 100}) int count)
focal_class.full_signature: public OpenCapsuleToyInfo openColorful(@MagicConstant(intValues = {1, 10, 100}) int count)
focal_class.identifier: openColorful
focal_class.modifiers: public
focal_class.parameters: (@MagicConstant(intValues = {1, 10, 100}) int count)
focal_class.return: OpenCapsuleToyInfo
focal_class.signature: OpenCapsuleToyInfo openColorful(@MagicConstant(intValues = {1, 10, 100}) int count)
focal_class.class_method_signature: CapsuleToyProtocol.openCapsule(String type, int count, String token)
focal_class.full_signature: private OpenCapsuleToyInfo openCapsule(String type, int count, String token)
focal_class.identifier: openCapsule
focal_class.modifiers: private
focal_class.parameters: (String type, int count, String token)
focal_class.return: OpenCapsuleToyInfo
focal_class.signature: OpenCapsuleToyInfo openCapsule(String type, int count, String token)
focal_class.class_method_signature: CapsuleToyProtocol.getCapsuleToyInfo()
focal_class.full_signature: public CapsuleToyInfo getCapsuleToyInfo()
focal_class.identifier: getCapsuleToyInfo
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: CapsuleToyInfo
focal_class.signature: CapsuleToyInfo getCapsuleToyInfo()
focal_class.class_method_signature: CapsuleToyProtocol.getToken()
focal_class.full_signature: private String getToken()
focal_class.identifier: getToken
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getToken()
focal_method.body: public CapsuleToyInfo getCapsuleToyInfo() throws BiliLiveException {
          CapsuleToyInfo info = session.getHttpHelper().getBiliLiveJSON(
                  CAPSULE_INFO_GET, CapsuleToyInfo.class, EXCEPTION_KEY);
          if (info.code == STATUS_NOT_LOGGED_IN) throw new NotLoggedInException();
          return info;
      }
focal_method.class_method_signature: CapsuleToyProtocol.getCapsuleToyInfo()
focal_method.full_signature: public CapsuleToyInfo getCapsuleToyInfo()
focal_method.identifier: getCapsuleToyInfo
focal_method.invocations: getBiliLiveJSON getHttpHelper
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: CapsuleToyInfo
focal_method.signature: CapsuleToyInfo getCapsuleToyInfo()