.class Lcom/tvbus/engine/TVService$TVServer;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# static fields
.field private static final TAG:Ljava/lang/String; = "TVBusServer"


# instance fields
.field final synthetic this$0:Lcom/tvbus/engine/TVService;

.field tvcore:Lcom/tvbus/engine/TVCore;


# direct methods
.method private constructor <init>(Lcom/tvbus/engine/TVService;)V
    .locals 1

    iput-object p1, p0, Lcom/tvbus/engine/TVService$TVServer;->this$0:Lcom/tvbus/engine/TVService;

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

    invoke-static {}, Lcom/tvbus/engine/TVCore;->getInstance()Lcom/tvbus/engine/TVCore;

    move-result-object v0

    iput-object v0, p0, Lcom/tvbus/engine/TVService$TVServer;->tvcore:Lcom/tvbus/engine/TVCore;

    return-void
.end method

.method synthetic constructor <init>(Lcom/tvbus/engine/TVService;Lcom/tvbus/engine/TVService$1;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/tvbus/engine/TVService$TVServer;-><init>(Lcom/tvbus/engine/TVService;)V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 2

    iget-object v0, p0, Lcom/tvbus/engine/TVService$TVServer;->tvcore:Lcom/tvbus/engine/TVCore;

    const/16 v1, 0x22c6

    invoke-virtual {v0, v1}, Lcom/tvbus/engine/TVCore;->setPlayPort(I)V

    iget-object v0, p0, Lcom/tvbus/engine/TVService$TVServer;->tvcore:Lcom/tvbus/engine/TVCore;

    const/16 v1, 0xfaa

    invoke-virtual {v0, v1}, Lcom/tvbus/engine/TVCore;->setServPort(I)V

    iget-object v0, p0, Lcom/tvbus/engine/TVService$TVServer;->tvcore:Lcom/tvbus/engine/TVCore;

    new-instance v1, Lcom/mtv/activities/k;

    invoke-direct {v1}, Lcom/mtv/activities/k;-><init>()V

    invoke-virtual {v0, v1}, Lcom/tvbus/engine/TVCore;->init(Landroid/content/Context;)I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/tvbus/engine/TVService$TVServer;->tvcore:Lcom/tvbus/engine/TVCore;

    invoke-virtual {v0}, Lcom/tvbus/engine/TVCore;->run()I

    :cond_0
    return-void
.end method
