-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* new crash report manager service and we change the way we are generating services * more fixy things * start on removing some todos * resolve todos * fix them buggies * finish up
- Loading branch information
Showing
30 changed files
with
1,181 additions
and
313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using Netimobiledevice.Extentions; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Netimobiledevice.Afc | ||
{ | ||
internal class AfcReadDirectoryRequest | ||
{ | ||
public CString Filename { get; } | ||
|
||
public AfcReadDirectoryRequest(string filename) | ||
{ | ||
Filename = new CString(filename, Encoding.UTF8); | ||
} | ||
|
||
public byte[] GetBytes() | ||
{ | ||
List<byte> bytes = new List<byte>(); | ||
bytes.AddRange(Filename.Bytes); | ||
return bytes.ToArray(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace Netimobiledevice.Afc | ||
{ | ||
internal class AfcReadDirectoryResponse | ||
{ | ||
public List<string> Filenames { get; } | ||
|
||
public AfcReadDirectoryResponse(List<string> filenames) | ||
{ | ||
Filenames = filenames; | ||
} | ||
|
||
public static AfcReadDirectoryResponse Parse(byte[] data) | ||
{ | ||
string decodedData = Encoding.UTF8.GetString(data); | ||
List<string> seperatedData = decodedData.Split('\0').ToList(); | ||
seperatedData.RemoveAt(seperatedData.Count - 1); | ||
return new AfcReadDirectoryResponse(seperatedData); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using Netimobiledevice.Extentions; | ||
|
||
namespace Netimobiledevice.Afc | ||
{ | ||
internal class AfcRmRequest | ||
{ | ||
public CString Filename { get; } | ||
|
||
public AfcRmRequest(CString filename) | ||
{ | ||
Filename = filename; | ||
} | ||
|
||
public byte[] GetBytes() | ||
{ | ||
return Filename.Bytes; | ||
} | ||
} | ||
} |
Oops, something went wrong.