Apply DataSource to message sender.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent b95b5f69de
commit 0746b1300d

@ -62,7 +62,6 @@ class SignalAttachment: NSObject {
let dataSource: DataSource let dataSource: DataSource
// TODO: Rename
public var data: Data { public var data: Data {
return dataSource.data() return dataSource.data()
} }

@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
// //
// Will only return nil in the error case. // Will only return nil in the error case.
// //
// TODO: Try to remove the parameter. // TODO: Try to remove this parameter.
- (nullable NSURL *)dataUrl; - (nullable NSURL *)dataUrl;
// The file path for the data. // The file path for the data.
@ -29,7 +29,7 @@ NS_ASSUME_NONNULL_BEGIN
// //
// Will only return nil in the error case. // Will only return nil in the error case.
// //
// TODO: Try to remove the parameter. // TODO: Try to remove this parameter.
- (nullable NSString *)dataPath; - (nullable NSString *)dataPath;
// The file path for the data, if it already exists on disk. // The file path for the data, if it already exists on disk.

Loading…
Cancel
Save