var request = new ContactFromFileRequest
{
Format = "Msg",
File = new MemoryStream(File.ReadAllBytes("/path/to/contact.msg"))
};
ContactFromFileRequest request = Models.contactFromFileRequest()
.format("Msg")
.file(IOUtils.toByteArray(new FileInputStream("/path/to/contact.msg")))
.build();
request = models.ContactFromFileRequest(
format='Msg',
file='/path/to/contact.msg')
request = ContactFromFileRequest.new(
format: 'Msg',
file: File.new('/path/to/contact.msg'))
let request = Models.ContactFromFileRequest()
.format('Msg')
.file(fs.readFileSync('/path/to/contact.msg'))
.build();
$request = Models::ContactFromFileRequest()
->format('Msg')
->file(new SplFileObject('/path/to/contact.msg'))
->build();