导航菜单

页面标题

页面副标题

Tasker v6.5.11 - DriveMetadata.java 源代码

正在查看: Tasker v6.5.11 应用的 DriveMetadata.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.joaomgcd.taskerm.google.drive.io;

import com.joaomgcd.taskerm.inputoutput.TaskerOutputObject;
import com.joaomgcd.taskerm.inputoutput.TaskerOutputVariable;
import net.dinglisch.android.taskerm.c6;
import yj.h;
import yj.p;

@TaskerOutputObject(varPrefix = "gd")
public class DriveMetadata {
    public static final int $stable = 8;
    private String id;
    private String mimeType;
    private String webContentLink;

    public DriveMetadata(String str, String str2, String str3) {
        p.i(str, c6.EXTRA_ID);
        this.id = str;
        this.mimeType = str2;
        this.webContentLink = str3;
    }

    @TaskerOutputVariable(htmlLabelResIdName = "unique_id_for_file_google_drive", labelResIdName = "file_id", name = c6.EXTRA_ID)
    public final String getId() {
        return this.id;
    }

    @TaskerOutputVariable(htmlLabelResIdName = "mimetype_for_file_google_drive", labelResIdName = "pl_mime_type", name = "mimetype")
    public final String getMimeType() {
        return this.mimeType;
    }

    public final String getWebContentLink() {
        return this.webContentLink;
    }

    @TaskerOutputVariable(htmlLabelResIdName = "url_can_be_used_show_on_google_drive", labelResIdName = "web_url", name = "weburl")
    public final String getWebUrl() {
        return "https://drive.google.com/file/d/" + this.id + "/view";
    }

    public final boolean isFolder() {
        return p.d(this.mimeType, RequestsKt.getMIME_TYPE_GOOGLE_DRIVE_FOLDER());
    }

    public final void setId(String str) {
        p.i(str, "<set-?>");
        this.id = str;
    }

    public final void setMimeType(String str) {
        this.mimeType = str;
    }

    public final void setWebContentLink(String str) {
        this.webContentLink = str;
    }

    public DriveMetadata(String str, String str2, String str3, int i, h hVar) {
        this(str, (i & 2) != 0 ? null : str2, (i & 4) != 0 ? null : str3);
    }
}