111 lines
3.1 KiB
Smali
111 lines
3.1 KiB
Smali
.class public Lorg/webrtc/IceCandidate;
|
|
.super Ljava/lang/Object;
|
|
.source "IceCandidate.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final sdp:Ljava/lang/String;
|
|
|
|
.field public final sdpMLineIndex:I
|
|
|
|
.field public final sdpMid:Ljava/lang/String;
|
|
|
|
.field public final serverUrl:Ljava/lang/String;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Ljava/lang/String;ILjava/lang/String;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lorg/webrtc/IceCandidate;->sdpMid:Ljava/lang/String;
|
|
|
|
iput p2, p0, Lorg/webrtc/IceCandidate;->sdpMLineIndex:I
|
|
|
|
iput-object p3, p0, Lorg/webrtc/IceCandidate;->sdp:Ljava/lang/String;
|
|
|
|
const-string p1, ""
|
|
|
|
iput-object p1, p0, Lorg/webrtc/IceCandidate;->serverUrl:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V
|
|
.locals 0
|
|
.annotation build Lorg/webrtc/CalledByNative;
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lorg/webrtc/IceCandidate;->sdpMid:Ljava/lang/String;
|
|
|
|
iput p2, p0, Lorg/webrtc/IceCandidate;->sdpMLineIndex:I
|
|
|
|
iput-object p3, p0, Lorg/webrtc/IceCandidate;->sdp:Ljava/lang/String;
|
|
|
|
iput-object p4, p0, Lorg/webrtc/IceCandidate;->serverUrl:Ljava/lang/String;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method getSdp()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Lorg/webrtc/CalledByNative;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lorg/webrtc/IceCandidate;->sdp:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method getSdpMid()Ljava/lang/String;
|
|
.locals 1
|
|
.annotation build Lorg/webrtc/CalledByNative;
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lorg/webrtc/IceCandidate;->sdpMid:Ljava/lang/String;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public toString()Ljava/lang/String;
|
|
.locals 3
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
iget-object v1, p0, Lorg/webrtc/IceCandidate;->sdpMid:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ":"
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v2, p0, Lorg/webrtc/IceCandidate;->sdpMLineIndex:I
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v2, p0, Lorg/webrtc/IceCandidate;->sdp:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, p0, Lorg/webrtc/IceCandidate;->serverUrl:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|