99 lines
3.4 KiB
Java
99 lines
3.4 KiB
Java
package co.discord.media_engine;
|
|
|
|
import c.d.b.a.a;
|
|
import com.discord.models.domain.ModelAuditLogEntry;
|
|
import d0.z.d.m;
|
|
/* compiled from: DeviceDescription.kt */
|
|
public final class VideoInputDeviceDescription {
|
|
private final VideoInputDeviceFacing facing;
|
|
private final String guid;
|
|
private final String name;
|
|
|
|
public VideoInputDeviceDescription(String str, String str2, VideoInputDeviceFacing videoInputDeviceFacing) {
|
|
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME);
|
|
m.checkNotNullParameter(str2, "guid");
|
|
m.checkNotNullParameter(videoInputDeviceFacing, "facing");
|
|
this.name = str;
|
|
this.guid = str2;
|
|
this.facing = videoInputDeviceFacing;
|
|
}
|
|
|
|
public static /* synthetic */ VideoInputDeviceDescription copy$default(VideoInputDeviceDescription videoInputDeviceDescription, String str, String str2, VideoInputDeviceFacing videoInputDeviceFacing, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = videoInputDeviceDescription.name;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str2 = videoInputDeviceDescription.guid;
|
|
}
|
|
if ((i & 4) != 0) {
|
|
videoInputDeviceFacing = videoInputDeviceDescription.facing;
|
|
}
|
|
return videoInputDeviceDescription.copy(str, str2, videoInputDeviceFacing);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.name;
|
|
}
|
|
|
|
public final String component2() {
|
|
return this.guid;
|
|
}
|
|
|
|
public final VideoInputDeviceFacing component3() {
|
|
return this.facing;
|
|
}
|
|
|
|
public final VideoInputDeviceDescription copy(String str, String str2, VideoInputDeviceFacing videoInputDeviceFacing) {
|
|
m.checkNotNullParameter(str, ModelAuditLogEntry.CHANGE_KEY_NAME);
|
|
m.checkNotNullParameter(str2, "guid");
|
|
m.checkNotNullParameter(videoInputDeviceFacing, "facing");
|
|
return new VideoInputDeviceDescription(str, str2, videoInputDeviceFacing);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof VideoInputDeviceDescription)) {
|
|
return false;
|
|
}
|
|
VideoInputDeviceDescription videoInputDeviceDescription = (VideoInputDeviceDescription) obj;
|
|
return m.areEqual(this.name, videoInputDeviceDescription.name) && m.areEqual(this.guid, videoInputDeviceDescription.guid) && m.areEqual(this.facing, videoInputDeviceDescription.facing);
|
|
}
|
|
|
|
public final VideoInputDeviceFacing getFacing() {
|
|
return this.facing;
|
|
}
|
|
|
|
public final String getGuid() {
|
|
return this.guid;
|
|
}
|
|
|
|
public final String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.name;
|
|
int i = 0;
|
|
int hashCode = (str != null ? str.hashCode() : 0) * 31;
|
|
String str2 = this.guid;
|
|
int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
|
|
VideoInputDeviceFacing videoInputDeviceFacing = this.facing;
|
|
if (videoInputDeviceFacing != null) {
|
|
i = videoInputDeviceFacing.hashCode();
|
|
}
|
|
return hashCode2 + i;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder K = a.K("VideoInputDeviceDescription(name=");
|
|
K.append(this.name);
|
|
K.append(", guid=");
|
|
K.append(this.guid);
|
|
K.append(", facing=");
|
|
K.append(this.facing);
|
|
K.append(")");
|
|
return K.toString();
|
|
}
|
|
}
|