1 package com.netease.nimlib.sdk.v2.message.attachment.builder;
4 import com.
netease.
nimlib.v2.message.impl.attachment.V2NIMMessageFileAttachmentImpl;
99 this.sceneName = sceneName;
141 public V2NIMMessageFileAttachmentImpl
build() {
142 return new V2NIMMessageFileAttachmentImpl(path, size, md5, url, ext, name, sceneName, null);
V2NIMMessageFileAttachmentBuilder withSize(long size)
设置文件大小,如果小于0,则不设置
V2NIMMessageFileAttachmentImpl build()
构建V2NIMMessageFileAttachmentImpl实例
static V2NIMMessageFileAttachmentBuilder builder()
创建一个新的V2NIMMessageFileAttachmentBuilder实例
V2NIMMessageFileAttachmentBuilder withUrl(String url)
设置文件URL
V2NIMMessageFileAttachmentBuilder withSceneName(String sceneName)
设置文件存储场景名,默认为com.netease.nimlib.sdk.v2.storage.V2NIMStorageSceneConfig#DEFAULT_IM的getSc...
V2NIMMessageFileAttachmentBuilder 类
V2NIMMessageFileAttachmentBuilder withName(String name)
设置文件名称
V2NIMMessageFileAttachmentBuilder withMd5(String md5)
设置文件MD5
String getSceneName()
返回场景名
static final V2NIMStorageScene DEFAULT_IM
默认文件类型等场景 默认不过期
V2NIMMessageFileAttachmentBuilder withExt(String ext)
设置文件扩展名
V2NIMMessageFileAttachmentBuilder withPath(String path)
设置文件路径