Esempio n. 1
0
void FloorRequestInfoParam::set( const bfcp_floor_request_info &info )
{
  floorRequestID = info.floorRequestID;
  valueType = info.valueType;
  if (valueType & kHasOverallRequestStatus)
  {
    oRS.set(info.oRS);
  }

  for (auto &status : info.fRS)
  {
    FloorRequestStatusParam floorRequestStatus;
    floorRequestStatus.set(status);
    fRS.push_back(std::move(floorRequestStatus));
  }

  if (valueType & kHasBeneficiaryInfo)
  {
    beneficiary.set(info.beneficiary);
  }

  if (valueType & kHasRequestedByInfo)
  {
    requestedBy.set(info.requestedBy);
  }
  priority = info.priority ? *info.priority : BFCP_PRIO_NORMAL;
  setString(partPriovidedInfo, info.partPriovidedInfo);
}
Esempio n. 2
0
void FloorRequestStatusParam::set( const bfcp_floor_request_status &frqStatus )
{
  floorID = frqStatus.floorID;
  if (frqStatus.requestStatus)
  {
    hasRequestStatus = true;
    requestStatus = *frqStatus.requestStatus;
  }
  else
  {
    hasRequestStatus = false;
  }
  setString(statusInfo, frqStatus.statusInfo);
}
Esempio n. 3
0
void OverallRequestStatusParam::set( const bfcp_overall_request_status &oRS )
{
  floorRequestID = oRS.floorRequestID;
  if (oRS.requestStatus)
  {
    hasRequestStatus = true;
    requestStatus = *oRS.requestStatus;
  }
  else
  {
    hasRequestStatus = false;
  }
  setString(statusInfo, oRS.statusInfo);
}
Esempio n. 4
0
void UserInfoParam::set( const bfcp_user_info &info )
{
  id = info.id;
  setString(username, info.username);
  setString(useruri, info.useruri);
}