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

# Class VoiceSession

java.lang.Object
ru.bitel.common.model.ContractId
ru.bitel.bgbilling.modules.voice.common.bean.VoiceSession

All Implemented Interfaces:
  `ContractIdable`

Direct Known Subclasses:
  `VoiceSessionLog`

public class VoiceSession extends ContractId

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final short`
  `CALL_TYPE_INCOMING`
  `static final short`
  `CALL_TYPE_OUTGOING`
  `static final short`
  `SESSION_TYPE_ADDITINAL`
  `static final short`
  `SESSION_TYPE_OPERATOR`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `VoiceSession()`
  `VoiceSession(VoiceSession session)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getAccountId()`
  `Map<Integer,VoiceSessionAccount>`
  `getAccountMap()`
  Получение наработки сессии с разбивкой по услугам
  `String`
  `getAccountTitle()`
  `String`
  `getAcctSessionId()`
  `String`
  `getCalledStationId()`
  `String`
  `getCallingStationId()`
  `short`
  `getCallType()`
  `BigDecimal`
  `getCdrCallCost()`
  `BigDecimal`
  `getCdrCallOperCost()`
  `int`
  `getCodeId()`
  `String`
  `getContractComment()`
  `String`
  `getContractTitle()`
  `int`
  `getCostMapItemId()`
  `int`
  `getDestinationId()`
  `int`
  `getDeviceId()`
  Получение кода устройства, к которому привязан аккаунт.
  `String`
  `getE164CalledStationId()`
  `String`
  `getE164CallingStationId()`
  `String`
  `getFromPort()`
  `Date`
  `getHour()`
  `long`
  `getId()`
  `String`
  `getIdentifier()`
  `Date`
  `getLastActive()`
  `BigDecimal`
  `getMinuteCost()`
  `int`
  `getOperatorId()`
  `long`
  `getParentId()`
  `long`
  `getRoundedSessionTime()`
  `int`
  `getServiceId()`
  `BigDecimal`
  `getSessionCost()`
  `Date`
  `getSessionStart()`
  `Date`
  `getSessionStop()`
  `long`
  `getSessionTime()`
  `String`
  `getToPort()`
  `int`
  `getType()`
  `int`
  `getZoneId()`
  `VoiceSession`
  `setAccountId(int accountId)`
  `VoiceSession`
  `setAccountMap(Map<Integer,VoiceSessionAccount> accountMap)`
  Установка наработки сессии с разбивкой по услугам.
  `VoiceSession`
  `setAccountTitle(String accountTitle)`
  `VoiceSession`
  `setAcctSessionId(String acctSessionId)`
  `VoiceSession`
  `setCalledStationId(String calledStationId)`
  `VoiceSession`
  `setCallingStationId(String callingStationId)`
  `VoiceSession`
  `setCallType(short callType)`
  `VoiceSession`
  `setCdrCallCost(BigDecimal cdrCallCost)`
  `VoiceSession`
  `setCdrCallOperCost(BigDecimal cdrCallOperCost)`
  `VoiceSession`
  `setCodeId(int codeId)`
  `VoiceSession`
  `setContractComment(String contractComment)`
  `VoiceSession`
  `setContractId(int contractId)`
  `VoiceSession`
  `setContractTitle(String contractTitle)`
  `VoiceSession`
  `setCostMapItemId(int costMapItemId)`
  `VoiceSession`
  `setDestinationId(int destinationId)`
  `VoiceSession`
  `setDeviceId(int deviceId)`
  Установка кода устройства, к которому привязывается аккаунт
  `VoiceSession`
  `setE164CalledStationId(String e164CalledStationId)`
  `VoiceSession`
  `setE164CallingStationId(String e164CallingStationId)`
  `VoiceSession`
  `setFromPort(String fromPort)`
  `VoiceSession`
  `setHour(Date hour)`
  `VoiceSession`
  `setId(long id)`
  `VoiceSession`
  `setIdentifier(String identifier)`
  `VoiceSession`
  `setLastActive(Date lastActive)`
  `VoiceSession`
  `setMinuteCost(BigDecimal minuteCost)`
  `VoiceSession`
  `setOperatorId(int operatorId)`
  `VoiceSession`
  `setParentId(long parentId)`
  `VoiceSession`
  `setRoundedSessionTime(long roundedSessionTime)`
  `VoiceSession`
  `setServiceId(int serviceId)`
  `VoiceSession`
  `setSessionCost(BigDecimal sessionCost)`
  `VoiceSession`
  `setSessionStart(Date sessionStart)`
  `VoiceSession`
  `setSessionStop(Date sessionStop)`
  `VoiceSession`
  `setSessionTime(long sessionTime)`
  `VoiceSession`
  `setToPort(String toPort)`
  `VoiceSession`
  `setType(int type)`
  `VoiceSession`
  `setZoneId(int zoneId)`
  `String`
  `toString()`

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

  `getContractId`

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

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

- ## Field Details

  - ### CALL_TYPE_OUTGOING

    public static final short CALL_TYPE_OUTGOING
    See Also:
      - Constant Field Values

  - ### CALL_TYPE_INCOMING

    public static final short CALL_TYPE_INCOMING
    See Also:
      - Constant Field Values

  - ### SESSION_TYPE_OPERATOR

    public static final short SESSION_TYPE_OPERATOR
    See Also:
      - Constant Field Values

  - ### SESSION_TYPE_ADDITINAL

    public static final short SESSION_TYPE_ADDITINAL
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### VoiceSession

    public VoiceSession()

  - ### VoiceSession

    public VoiceSession(VoiceSession session)

- ## Method Details

  - ### getAccountId

    public int getAccountId()

  - ### getAccountMap

    public Map<Integer,VoiceSessionAccount> getAccountMap()
    Получение наработки сессии с разбивкой по услугам
    Returns:
      мап наработок сессии. В качестве ключа выступает код услуги. Каждая запись в себя включает код услуги, количество в секундах и рублях.

  - ### getAccountTitle

    public String getAccountTitle()

  - ### getAcctSessionId

    public String getAcctSessionId()

  - ### getCalledStationId

    public String getCalledStationId()

  - ### getCallingStationId

    public String getCallingStationId()

  - ### getCallType

    public short getCallType()

  - ### getCdrCallCost

    public BigDecimal getCdrCallCost()

  - ### getCdrCallOperCost

    public BigDecimal getCdrCallOperCost()

  - ### getCodeId

    public int getCodeId()

  - ### getContractComment

    public String getContractComment()

  - ### getContractTitle

    public String getContractTitle()

  - ### getCostMapItemId

    public int getCostMapItemId()

  - ### getDestinationId

    public int getDestinationId()

  - ### getDeviceId

    public int getDeviceId()
    Получение кода устройства, к которому привязан аккаунт.
    Returns:
      код устройства

  - ### getE164CalledStationId

    public String getE164CalledStationId()

  - ### getE164CallingStationId

    public String getE164CallingStationId()

  - ### getFromPort

    public String getFromPort()

  - ### getHour

    public Date getHour()

  - ### getId

    public long getId()

  - ### getIdentifier

    public String getIdentifier()

  - ### getLastActive

    public Date getLastActive()

  - ### getMinuteCost

    public BigDecimal getMinuteCost()

  - ### getOperatorId

    public int getOperatorId()

  - ### getParentId

    public long getParentId()

  - ### getRoundedSessionTime

    public long getRoundedSessionTime()

  - ### getServiceId

    public int getServiceId()

  - ### getSessionCost

    public BigDecimal getSessionCost()

  - ### getSessionStart

    public Date getSessionStart()

  - ### getSessionStop

    public Date getSessionStop()

  - ### getSessionTime

    public long getSessionTime()

  - ### getToPort

    public String getToPort()

  - ### getType

    public int getType()

  - ### getZoneId

    public int getZoneId()

  - ### setAccountId

    public VoiceSession setAccountId(int accountId)

  - ### setAccountMap

    public VoiceSession setAccountMap(Map<Integer,VoiceSessionAccount> accountMap)
    Установка наработки сессии с разбивкой по услугам.
    Parameters:
      `accountMap` - мап наработок сессии. В качестве ключа выступает код услуги.

  - ### setAccountTitle

    public VoiceSession setAccountTitle(String accountTitle)

  - ### setAcctSessionId

    public VoiceSession setAcctSessionId(String acctSessionId)

  - ### setCalledStationId

    public VoiceSession setCalledStationId(String calledStationId)

  - ### setCallingStationId

    public VoiceSession setCallingStationId(String callingStationId)

  - ### setCallType

    public VoiceSession setCallType(short callType)

  - ### setCdrCallCost

    public VoiceSession setCdrCallCost(BigDecimal cdrCallCost)

  - ### setCdrCallOperCost

    public VoiceSession setCdrCallOperCost(BigDecimal cdrCallOperCost)

  - ### setCodeId

    public VoiceSession setCodeId(int codeId)

  - ### setContractComment

    public VoiceSession setContractComment(String contractComment)

  - ### setContractId

    public VoiceSession setContractId(int contractId)
    Overrides:
      `setContractId` in class `ContractId`

  - ### setContractTitle

    public VoiceSession setContractTitle(String contractTitle)

  - ### setCostMapItemId

    public VoiceSession setCostMapItemId(int costMapItemId)

  - ### setDestinationId

    public VoiceSession setDestinationId(int destinationId)

  - ### setDeviceId

    public VoiceSession setDeviceId(int deviceId)
    Установка кода устройства, к которому привязывается аккаунт
    Parameters:
      `deviceId` - код устройства

  - ### setE164CalledStationId

    public VoiceSession setE164CalledStationId(String e164CalledStationId)

  - ### setE164CallingStationId

    public VoiceSession setE164CallingStationId(String e164CallingStationId)

  - ### setFromPort

    public VoiceSession setFromPort(String fromPort)

  - ### setHour

    public VoiceSession setHour(Date hour)

  - ### setId

    public VoiceSession setId(long id)

  - ### setIdentifier

    public VoiceSession setIdentifier(String identifier)

  - ### setLastActive

    public VoiceSession setLastActive(Date lastActive)

  - ### setMinuteCost

    public VoiceSession setMinuteCost(BigDecimal minuteCost)

  - ### setOperatorId

    public VoiceSession setOperatorId(int operatorId)

  - ### setParentId

    public VoiceSession setParentId(long parentId)

  - ### setRoundedSessionTime

    public VoiceSession setRoundedSessionTime(long roundedSessionTime)

  - ### setServiceId

    public VoiceSession setServiceId(int serviceId)

  - ### setSessionCost

    public VoiceSession setSessionCost(BigDecimal sessionCost)

  - ### setSessionStart

    public VoiceSession setSessionStart(Date sessionStart)

  - ### setSessionStop

    public VoiceSession setSessionStop(Date sessionStop)

  - ### setSessionTime

    public VoiceSession setSessionTime(long sessionTime)

  - ### setToPort

    public VoiceSession setToPort(String toPort)

  - ### setType

    public VoiceSession setType(int type)

  - ### setZoneId

    public VoiceSession setZoneId(int zoneId)

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`