Java Code Examples for org.telegram.tgnet.TLRPC#InputEncryptedFile

The following examples show how to use org.telegram.tgnet.TLRPC#InputEncryptedFile . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: InstantCameraView.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void didReceivedNotification(int id, int account, Object... args) {
    if (id == NotificationCenter.recordProgressChanged) {
        long t = (Long) args[0];
        progress = t / 60000.0f;
        recordedTime = t;
        invalidate();
    } else if (id == NotificationCenter.FileDidUpload) {
        final String location = (String) args[0];
        if (cameraFile != null && cameraFile.getAbsolutePath().equals(location)) {
            file = (TLRPC.InputFile) args[1];
            encryptedFile = (TLRPC.InputEncryptedFile) args[2];
            size = (Long) args[5];
            if (encryptedFile != null) {
                key = (byte[]) args[3];
                iv = (byte[]) args[4];
            }
        }
    }
}
 
Example 2
Source File: InstantCameraView.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
@Override
public void didReceivedNotification(int id, int account, Object... args) {
    if (id == NotificationCenter.recordProgressChanged) {
        long t = (Long) args[0];
        progress = t / 60000.0f;
        recordedTime = t;
        invalidate();
    } else if (id == NotificationCenter.FileDidUpload) {
        final String location = (String) args[0];
        if (cameraFile != null && cameraFile.getAbsolutePath().equals(location)) {
            file = (TLRPC.InputFile) args[1];
            encryptedFile = (TLRPC.InputEncryptedFile) args[2];
            size = (Long) args[5];
            if (encryptedFile != null) {
                key = (byte[]) args[3];
                iv = (byte[]) args[4];
            }
        }
    }
}
 
Example 3
Source File: InstantCameraView.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void didReceivedNotification(int id, int account, Object... args) {
    if (id == NotificationCenter.FileDidUpload) {
        final String location = (String) args[0];
        if (cameraFile != null && cameraFile.getAbsolutePath().equals(location)) {
            file = (TLRPC.InputFile) args[1];
            encryptedFile = (TLRPC.InputEncryptedFile) args[2];
            size = (Long) args[5];
            if (encryptedFile != null) {
                key = (byte[]) args[3];
                iv = (byte[]) args[4];
            }
        }
    }
}
 
Example 4
Source File: InstantCameraView.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void didReceivedNotification(int id, int account, Object... args) {
    if (id == NotificationCenter.FileDidUpload) {
        final String location = (String) args[0];
        if (cameraFile != null && cameraFile.getAbsolutePath().equals(location)) {
            file = (TLRPC.InputFile) args[1];
            encryptedFile = (TLRPC.InputEncryptedFile) args[2];
            size = (Long) args[5];
            if (encryptedFile != null) {
                key = (byte[]) args[3];
                iv = (byte[]) args[4];
            }
        }
    }
}
 
Example 5
Source File: FileLoader.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
void fileDidUploaded(String location, TLRPC.InputFile inputFile,
TLRPC.InputEncryptedFile inputEncryptedFile,
byte[] key, byte[] iv, long totalFileSize);
 
Example 6
Source File: FileLoader.java    From TelePlus-Android with GNU General Public License v2.0 4 votes vote down vote up
void fileDidUploaded(String location, TLRPC.InputFile inputFile,
TLRPC.InputEncryptedFile inputEncryptedFile,
byte[] key, byte[] iv, long totalFileSize);
 
Example 7
Source File: FileUploadOperation.java    From TelePlus-Android with GNU General Public License v2.0 votes vote down vote up
void didFinishUploadingFile(FileUploadOperation operation, TLRPC.InputFile inputFile, TLRPC.InputEncryptedFile inputEncryptedFile, byte[] key, byte[] iv); 
Example 8
Source File: FileUploadOperation.java    From TelePlus-Android with GNU General Public License v2.0 votes vote down vote up
void didFinishUploadingFile(FileUploadOperation operation, TLRPC.InputFile inputFile, TLRPC.InputEncryptedFile inputEncryptedFile, byte[] key, byte[] iv); 
Example 9
Source File: FileUploadOperation.java    From Telegram-FOSS with GNU General Public License v2.0 votes vote down vote up
void didFinishUploadingFile(FileUploadOperation operation, TLRPC.InputFile inputFile, TLRPC.InputEncryptedFile inputEncryptedFile, byte[] key, byte[] iv); 
Example 10
Source File: FileLoader.java    From Telegram-FOSS with GNU General Public License v2.0 votes vote down vote up
void fileDidUploaded(String location, TLRPC.InputFile inputFile, TLRPC.InputEncryptedFile inputEncryptedFile, byte[] key, byte[] iv, long totalFileSize); 
Example 11
Source File: FileUploadOperation.java    From Telegram with GNU General Public License v2.0 votes vote down vote up
void didFinishUploadingFile(FileUploadOperation operation, TLRPC.InputFile inputFile, TLRPC.InputEncryptedFile inputEncryptedFile, byte[] key, byte[] iv); 
Example 12
Source File: FileLoader.java    From Telegram with GNU General Public License v2.0 votes vote down vote up
void fileDidUploaded(String location, TLRPC.InputFile inputFile, TLRPC.InputEncryptedFile inputEncryptedFile, byte[] key, byte[] iv, long totalFileSize);