Example #1
0
 public void OnReset()
 {
     downloadPhase  = DownloadPhase.REQUSET;
     bCheckMd5      = true;
     callBack       = null;
     remoteFileSize = 0;
     hasDownSize    = 0;
 }
        internal static string ToSerializedValue(this DownloadPhase value)
        {
            switch (value)
            {
            case DownloadPhase.Unknown:
                return("Unknown");

            case DownloadPhase.Initializing:
                return("Initializing");

            case DownloadPhase.Downloading:
                return("Downloading");

            case DownloadPhase.Verifying:
                return("Verifying");
            }
            return(null);
        }