code: public void putType(int type) throws JSONException {
          if (type != 0) {
              this.type = type;
              this.put(Defines.LinkParam.Type.getKey(), type);
          }
      }
docs: <b>Adds a type to the link.</b>
  
  @param type An {@link Integer} value of the type specified. Valid values are:
  
  <ul>
  <li>{@link Branch#LINK_TYPE_UNLIMITED_USE}</li>
  <li>{@link Branch#LINK_TYPE_ONE_TIME_USE}</li>
  </ul>
  @throws JSONException The parameter value must be in valid JSON format, or a
  {@link JSONException} will be thrown.