.class public Lcom/moji/httpdns/server/DnsServer;
.super Ljava/lang/Object;
.source "DnsServer.java"

# interfaces
.implements Lcom/moji/httpdns/server/IDnsServer;


# instance fields
.field private a:Lcom/moji/httpdns/server/IDnsSource;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 9
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 10
    new-instance v0, Lcom/moji/httpdns/server/DnsPodFreeDns;

    invoke-direct {v0}, Lcom/moji/httpdns/server/DnsPodFreeDns;-><init>()V

    iput-object v0, p0, Lcom/moji/httpdns/server/DnsServer;->a:Lcom/moji/httpdns/server/IDnsSource;

    return-void
.end method


# virtual methods
.method public a(Ljava/lang/String;)Lcom/moji/httpdns/model/HttpDnsPack;
    .locals 1

    .line 15
    iget-object v0, p0, Lcom/moji/httpdns/server/DnsServer;->a:Lcom/moji/httpdns/server/IDnsSource;

    invoke-interface {v0, p1}, Lcom/moji/httpdns/server/IDnsSource;->a(Ljava/lang/String;)Lcom/moji/httpdns/model/HttpDnsPack;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 17
    invoke-static {}, Lcom/moji/httpdns/nettype/NetworkManager;->a()Lcom/moji/httpdns/nettype/NetworkManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/moji/httpdns/nettype/NetworkManager;->b()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p1, Lcom/moji/httpdns/model/HttpDnsPack;->device_sp:Ljava/lang/String;

    return-object p1

    :cond_0
    const/4 p1, 0x0

    return-object p1
.end method
