Tabnine Logo
OpenRtb$BidRequest$Device.hasUa
Code IndexAdd Tabnine to your IDE (free)

How to use
hasUa
method
in
com.google.openrtb.OpenRtb$BidRequest$Device

Best Java code snippets using com.google.openrtb.OpenRtb$BidRequest$Device.hasUa (Showing top 2 results out of 315)

origin: benmfaul/XRTB

/**
 * Make a device object
 */
void makeDevice() {
  if (!internal.hasDevice())
    return;
  
  Device d = internal.getDevice();
  ObjectNode node = BidRequest.factory.objectNode();
  if (d.hasIp()) node.put("ip",d.getIp());
  if (d.hasLanguage()) node.put("language", d.getLanguage());
  if (d.hasOs()) node.put("os",d.getOs());
  if (d.hasOsv()) node.put("osv",d.getOsv());
  if (d.hasCarrier()) node.put("carrier",d.getCarrier());
  if (d.hasConnectiontype()) node.put("connectiontype",d.getConnectiontype().getNumber());
  if (d.hasDidmd5()) node.put("didmd5",d.getDidmd5());
  if (d.hasDidsha1()) node.put("didsha1",d.getDidsha1());
  if (d.hasDpidsha1())node.put("dpidsha1",d.getDpidsha1());
  if (d.hasDnt()) node.put("dnt",d.getDnt());
  if (d.hasDevicetype()) node.put("devicetype", d.getDevicetype().getNumber());
  if (d.hasUa()) node.put("ua", d.getUa());
  if (d.hasJs()) node.put("js", d.getJs());
  if (internal.getDevice().hasGeo())  addGeo(node,d.getGeo());
  root.put("device", node);
  
}

origin: com.google.openrtb/openrtb-core

protected void writeDeviceFields(Device device, JsonGenerator gen) throws IOException {
 if (device.hasUa()) {
  gen.writeStringField("ua", device.getUa());
com.google.openrtbOpenRtb$BidRequest$DevicehasUa

Popular methods of OpenRtb$BidRequest$Device

  • getCarrier
  • getConnectiontype
  • getDevicetype
  • getDidmd5
  • getDidsha1
  • getDnt
  • getDpidsha1
  • getGeo
  • getIp
  • getJs
  • getLanguage
  • getOs
  • getLanguage,
  • getOs,
  • getOsv,
  • getUa,
  • hasCarrier,
  • hasConnectiontype,
  • hasDevicetype,
  • hasDidmd5,
  • hasDidsha1,
  • hasDnt

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JPanel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now