Package ru.bitel.bgbilling.modules.megogo.common.bean

# Class MegogoContractSubRequestLog

java.lang.Object
ru.bitel.common.model.Id
ru.bitel.common.model.IdContractId
ru.bitel.bgbilling.modules.megogo.common.bean.MegogoContractSubRequestLog

All Implemented Interfaces:
  `Serializable`, `ContractIdable`, `Idable`

public class MegogoContractSubRequestLog extends IdContractId
Лог запроса к Megogo.

See Also:
  - Serialized Form

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final Integer`
  `MEGOGO_REQUEST_RESULT_ERROR`
  Отвергнут Megogo
  `static final Integer`
  `MEGOGO_REQUEST_RESULT_RUNTIME_ERROR`
  Отвергнут Megogo
  `static final Integer`
  `MEGOGO_REQUEST_RESULT_SUCCESSFUL`
  Успешный ответ
  `static final Integer`
  `MEGOGO_REQUEST_TYPE_CHANGE_CREDENTIALS`
  Установка логина и пароля
  `static final Integer`
  `MEGOGO_REQUEST_TYPE_CREATE_USER`
  Создание пользователя на стороне Megogo
  `static final Integer`
  `MEGOGO_REQUEST_TYPE_RESUME`
  `static final Integer`
  `MEGOGO_REQUEST_TYPE_SUBSCRIBE`
  `static final Integer`
  `MEGOGO_REQUEST_TYPE_SUSPEND`
  `static final Integer`
  `MEGOGO_REQUEST_TYPE_UNSUBSCRIBE`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MegogoContractSubRequestLog()`
  `MegogoContractSubRequestLog(int contractId, int sid, int type, Date date, int userId)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getAnswerResult()`
  `String`
  `getAnswerResultText()`
  `int`
  `getContractSubId()`
  `Date`
  `getDate()`
  `String`
  `getErrorMessage()`
  `int`
  `getServiceId()`
  `int`
  `getType()`
  `String`
  `getTypeText()`
  `int`
  `getUserId()`
  `MegogoContractSubRequestLog`
  `setAnswerResult(int answerResult)`
  `MegogoContractSubRequestLog`
  `setContractId(int contractId)`
  `MegogoContractSubRequestLog`
  `setContractSubId(int contractSubId)`
  `MegogoContractSubRequestLog`
  `setDate(Date date)`
  `MegogoContractSubRequestLog`
  `setErrorMessage(String errorMessage)`
  `MegogoContractSubRequestLog`
  `setId(int id)`
  Устанавливает id объекта
  `MegogoContractSubRequestLog`
  `setServiceId(int sserviceId)`
  `MegogoContractSubRequestLog`
  `setType(int type)`
  `MegogoContractSubRequestLog`
  `setUserId(int userId)`

  ### Methods inherited from class ru.bitel.common.model.IdContractId

  `getContractId`

  ### Methods inherited from class ru.bitel.common.model.Id

  `copyTo, equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, toString`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Field Details

  - ### MEGOGO_REQUEST_TYPE_SUBSCRIBE

    public static final Integer MEGOGO_REQUEST_TYPE_SUBSCRIBE

  - ### MEGOGO_REQUEST_TYPE_UNSUBSCRIBE

    public static final Integer MEGOGO_REQUEST_TYPE_UNSUBSCRIBE

  - ### MEGOGO_REQUEST_TYPE_SUSPEND

    public static final Integer MEGOGO_REQUEST_TYPE_SUSPEND

  - ### MEGOGO_REQUEST_TYPE_RESUME

    public static final Integer MEGOGO_REQUEST_TYPE_RESUME

  - ### MEGOGO_REQUEST_TYPE_CHANGE_CREDENTIALS

    public static final Integer MEGOGO_REQUEST_TYPE_CHANGE_CREDENTIALS
    Установка логина и пароля

  - ### MEGOGO_REQUEST_TYPE_CREATE_USER

    public static final Integer MEGOGO_REQUEST_TYPE_CREATE_USER
    Создание пользователя на стороне Megogo

  - ### MEGOGO_REQUEST_RESULT_SUCCESSFUL

    public static final Integer MEGOGO_REQUEST_RESULT_SUCCESSFUL
    Успешный ответ

  - ### MEGOGO_REQUEST_RESULT_ERROR

    public static final Integer MEGOGO_REQUEST_RESULT_ERROR
    Отвергнут Megogo

  - ### MEGOGO_REQUEST_RESULT_RUNTIME_ERROR

    public static final Integer MEGOGO_REQUEST_RESULT_RUNTIME_ERROR
    Отвергнут Megogo

- ## Constructor Details

  - ### MegogoContractSubRequestLog

    public MegogoContractSubRequestLog()

  - ### MegogoContractSubRequestLog

    public MegogoContractSubRequestLog(int contractId, int sid, int type, Date date, int userId)
    Parameters:
      `contractId` - - код договора
      `sid` - - код услуги/подписки
      `type` - - тип запроса
      `date` - - время запроса
      `userId` - - код пользователя

- ## Method Details

  - ### getAnswerResult

    public int getAnswerResult()

  - ### getAnswerResultText

    public String getAnswerResultText()

  - ### getContractSubId

    public int getContractSubId()

  - ### getDate

    public Date getDate()

  - ### getErrorMessage

    public String getErrorMessage()

  - ### getServiceId

    public int getServiceId()

  - ### getType

    public int getType()

  - ### getTypeText

    public String getTypeText()

  - ### getUserId

    public int getUserId()

  - ### setAnswerResult

    public MegogoContractSubRequestLog setAnswerResult(int answerResult)

  - ### setContractId

    public MegogoContractSubRequestLog setContractId(int contractId)
    Overrides:
      `setContractId` in class `IdContractId`

  - ### setContractSubId

    public MegogoContractSubRequestLog setContractSubId(int contractSubId)

  - ### setDate

    public MegogoContractSubRequestLog setDate(Date date)

  - ### setErrorMessage

    public MegogoContractSubRequestLog setErrorMessage(String errorMessage)

  - ### setId

    public MegogoContractSubRequestLog setId(int id)
    Description copied from class: `Id`
    Устанавливает id объекта
    Overrides:
      `setId` in class `Id`

  - ### setServiceId

    public MegogoContractSubRequestLog setServiceId(int sserviceId)

  - ### setType

    public MegogoContractSubRequestLog setType(int type)

  - ### setUserId

    public MegogoContractSubRequestLog setUserId(int userId)