Package io.fathom.cloud.protobuf.DnsModel

Examples of io.fathom.cloud.protobuf.DnsModel.DnsRecordData


        return model;
    }

    static Record toModel(DnsRecord record) {
        DnsRecordData data = record.getData();

        Record model = new Record();
        if (data.hasTarget()) {
            model.value = data.getTarget();
        }
        if (data.hasWeight()) {
            model.weight = data.getWeight();
        }
        if (data.hasPort()) {
            model.port = data.getPort();
        }
        if (data.hasPriority()) {
            model.priority = data.getPriority();
        }
        return model;
    }
View Full Code Here


                }

                r.records = Lists.newArrayList();
                for (DnsRecord dnsRecord : recordset.getRecords()) {
                    Record record = new Record();
                    DnsRecordData recordData = dnsRecord.getData();
                    record.value = recordData.getTarget();
                    if (recordData.hasWeight()) {
                        record.weight = recordData.getWeight();
                    }
                    if (recordData.hasPort()) {
                        record.port = recordData.getPort();
                    }
                    if (recordData.hasPriority()) {
                        record.priority = recordData.getPriority();
                    }
                    r.records.add(record);
                }

                recordsets.add(r);
View Full Code Here

TOP

Related Classes of io.fathom.cloud.protobuf.DnsModel.DnsRecordData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.